PERFORCE change 29460 for review

Peter Wemm peter at FreeBSD.org
Tue Apr 22 14:48:06 PDT 2003


http://perforce.freebsd.org/chv.cgi?CH=29460

Change 29460 by peter at peter_overcee on 2003/04/22 14:47:55

	Not that it matters, but dont create a null descriptor under the second
	half of the double-sized tss descriptor, only to have it clobbered a few
	lines down.

Affected files ...

.. //depot/projects/hammer/sys/x86_64/x86_64/machdep.c#69 edit

Differences ...

==== //depot/projects/hammer/sys/x86_64/x86_64/machdep.c#69 (text+ko) ====

@@ -1161,7 +1161,7 @@
 	gdt_segs[GPROC0_SEL].ssd_base = (uintptr_t)&common_tss.tss;
 
 	for (x = 0; x < NGDT; x++) {
-		if (x != GPROC0_SEL)
+		if (x != GPROC0_SEL && x != (GPROC0_SEL + 1))
 			ssdtosd(&gdt_segs[x], &gdt[x]);
 	}
 	ssdtosyssd(&gdt_segs[GPROC0_SEL], (struct system_segment_descriptor *)&gdt[GPROC0_SEL]);


More information about the p4-projects mailing list