Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 Nov 2004 23:23:21 GMT
From:      Peter Wemm <peter@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 64388 for review
Message-ID:  <200411052323.iA5NNLBt040657@repoman.freebsd.org>

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

Change 64388 by peter@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
 }



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