Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Jun 2005 17:36:52 GMT
From:      John Baldwin <jhb@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 78770 for review
Message-ID:  <200506211736.j5LHaquH058865@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=78770

Change 78770 by jhb@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);
 	}
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200506211736.j5LHaquH058865>