diff options
author | davidxu <davidxu@FreeBSD.org> | 2003-07-31 02:11:04 +0000 |
---|---|---|
committer | davidxu <davidxu@FreeBSD.org> | 2003-07-31 02:11:04 +0000 |
commit | ff39c53c7235f44afe0db3ac4a24f3ae41965b65 (patch) | |
tree | 7f577b1a1693d6aec99cf47dcf39732c5619475d /lib/libkvm/kvm_file.c | |
parent | 176747be7268959d57123ad4dfb244ca78380d32 (diff) | |
download | FreeBSD-src-ff39c53c7235f44afe0db3ac4a24f3ae41965b65.zip FreeBSD-src-ff39c53c7235f44afe0db3ac4a24f3ae41965b65.tar.gz |
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
Diffstat (limited to 'lib/libkvm/kvm_file.c')
0 files changed, 0 insertions, 0 deletions