Mercurial > illumos > illumos-gate
diff usr/src/uts/intel/ia32/os/archdep.c @ 1217:f95ffdc997b7
6219276 need per-process equivalent of device context
6244042 x86 kernels do not need default LDTs
6308413 sysi86(SI86DSCR) rejects the first valid custom descriptor #6 with errno
6308413 contributed by Juergen Keil <jk@tools.de>
author | rab |
---|---|
date | Fri, 06 Jan 2006 10:19:31 -0800 |
parents | 68f95e015346 |
children | f74a135872bc |
line wrap: on
line diff
--- a/usr/src/uts/intel/ia32/os/archdep.c Fri Jan 06 09:41:00 2006 -0800 +++ b/usr/src/uts/intel/ia32/os/archdep.c Fri Jan 06 10:19:31 2006 -0800 @@ -20,7 +20,7 @@ * CDDL HEADER END */ /* - * Copyright 2005 Sun Microsystems, Inc. All rights reserved. + * Copyright 2006 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ @@ -633,7 +633,11 @@ } /* - * Force it into the LDT in ring 3 for 32-bit processes. + * Force it into the LDT in ring 3 for 32-bit processes, which by + * default do not have an LDT, so that any attempt to use an invalid + * selector will reference the (non-existant) LDT, and cause a #gp fault + * for the process. + * * 64-bit processes get the null gdt selector since they * are not allowed to have a private LDT. */