summaryrefslogtreecommitdiffstats
path: root/sys/amd64/include/cpufunc.h
diff options
context:
space:
mode:
authordavidxu <davidxu@FreeBSD.org>2003-04-20 01:35:21 +0000
committerdavidxu <davidxu@FreeBSD.org>2003-04-20 01:35:21 +0000
commitf781b4eab2127109ca56df4056f960a6448fa5e0 (patch)
tree644dc246d01a74b9fa9ba64b590f444197294239 /sys/amd64/include/cpufunc.h
parentae503410da7b3c55dce4c45ca24e59b514c9ce5b (diff)
downloadFreeBSD-src-f781b4eab2127109ca56df4056f960a6448fa5e0.zip
FreeBSD-src-f781b4eab2127109ca56df4056f960a6448fa5e0.tar.gz
Backout my last commit.
Requested by: bde
Diffstat (limited to 'sys/amd64/include/cpufunc.h')
-rw-r--r--sys/amd64/include/cpufunc.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/amd64/include/cpufunc.h b/sys/amd64/include/cpufunc.h
index 3fe22ac..c7f9ace 100644
--- a/sys/amd64/include/cpufunc.h
+++ b/sys/amd64/include/cpufunc.h
@@ -444,16 +444,16 @@ invlpg(u_int addr)
static __inline u_int
rfs(void)
{
- u_short sel;
- __asm __volatile("movw %%fs,%0" : "=rm" (sel));
+ u_int sel;
+ __asm __volatile("movl %%fs,%0" : "=rm" (sel));
return (sel);
}
static __inline u_int
rgs(void)
{
- u_short sel;
- __asm __volatile("movw %%gs,%0" : "=rm" (sel));
+ u_int sel;
+ __asm __volatile("movl %%gs,%0" : "=rm" (sel));
return (sel);
}
OpenPOWER on IntegriCloud