PERFORCE change 78770 for review
John Baldwin
jhb at FreeBSD.org
Tue Jun 21 17:36:54 GMT 2005
http://perforce.freebsd.org/chv.cgi?CH=78770
Change 78770 by jhb at jhb_slimer on 2005/06/21 17:36:25
More nits.
Affected files ...
.. //depot/projects/smpng/sys/i386/i386/vm_machdep.c#68 edit
Differences ...
==== //depot/projects/smpng/sys/i386/i386/vm_machdep.c#68 (text+ko) ====
@@ -298,12 +298,13 @@
cpu_exit(struct thread *td)
{
+ /*
+ * If this process has a custom LDT, release it. Reset pc->pcb_gs
+ * and %gs before we free it in case they refer to an LDT entry.
+ */
if (td->td_proc->p_md.md_ldt) {
-
- /* Reset pc->pcb_gs and %gs before invalidating it. */
td->td_pcb->pcb_gs = _udatasel;
load_gs(_udatasel);
-
user_ldt_free(td);
}
}
More information about the p4-projects
mailing list