PERFORCE change 64388 for review

Peter Wemm peter at FreeBSD.org
Fri Nov 5 15:23:22 PST 2004


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

Change 64388 by peter at peter_daintree on 2004/11/05 23:22:39

	make this actually compile

Affected files ...

.. //depot/projects/hammer/lib/libc/i386/gen/_set_tp.c#3 edit

Differences ...

==== //depot/projects/hammer/lib/libc/i386/gen/_set_tp.c#3 (text+ko) ====

@@ -36,10 +36,8 @@
 {
 #ifndef COMPAT_32BIT
 	union descriptor ldt;
-#endif
 	int sel;
 
-#ifndef COMPAT_32BIT
 	memset(&ldt, 0, sizeof(ldt));
 	ldt.sd.sd_lolimit = 0xffff;	/* 4G limit */
 	ldt.sd.sd_lobase = ((uintptr_t)tp) & 0xffffff;
@@ -53,6 +51,6 @@
 	sel = i386_set_ldt(LDT_AUTO_ALLOC, &ldt, 1);
 	__asm __volatile("movl %0,%%gs" : : "rm" ((sel << 3) | 7));
 #else
-	_amd64_set_gs(tp);
+	_amd64_set_gsbase(tp);
 #endif
 }


More information about the p4-projects mailing list