K 10 svn:author V 7 davidxu K 8 svn:date V 27 2003-07-31T02:11:04.000000Z K 7 svn:log V 690 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 END