Date: Wed, 30 Jul 2003 19:11:04 -0700 (PDT) From: David Xu <davidxu@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/i386/i386 sys_machdep.c Message-ID: <200307310211.h6V2B4wG001064@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200307310211.h6V2B4wG001064>