From owner-cvs-src@FreeBSD.ORG Wed Jul 30 19:11:04 2003 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E706D37B401; Wed, 30 Jul 2003 19:11:04 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 927CC43FA3; Wed, 30 Jul 2003 19:11:04 -0700 (PDT) (envelope-from davidxu@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h6V2B40U001065; Wed, 30 Jul 2003 19:11:04 -0700 (PDT) (envelope-from davidxu@repoman.freebsd.org) Received: (from davidxu@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h6V2B4wG001064; Wed, 30 Jul 2003 19:11:04 -0700 (PDT) Message-Id: <200307310211.h6V2B4wG001064@repoman.freebsd.org> From: David Xu Date: Wed, 30 Jul 2003 19:11:04 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/i386/i386 sys_machdep.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Jul 2003 02:11:05 -0000 davidxu 2003/07/30 19:11:04 PDT FreeBSD src repository Modified files: sys/i386/i386 sys_machdep.c Log: Enhance i386_set_ldt to allow application to dynamic allocate or free a LDT entry. The function has following prototype: int i386_set_ldt(int start_sel, union descriptor *descs, int num_sels); Added Features: o If start_sel is 0, num_sels is 1 and the descriptor pointed to by descs is legal, then i386_set_ldt() will allocate a descriptor and return its selector numbe o If num_descs is 1, start_sels is valid, and descs is NULL, then i386_set_ldt() will free that descriptor (making it available to be real- located again later). o If num_descs is 0, start_sels is 0 and descs is NULL then, as a special case, i386_set_ldt() will free all descriptors. Reviewed by: julian Revision Changes Path 1.85 +167 -56 src/sys/i386/i386/sys_machdep.c