cvs commit: src/sys/i386/i386 sys_machdep.c

David Xu davidxu at FreeBSD.org
Wed Jul 30 19:11:05 PDT 2003


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


More information about the cvs-src mailing list