summaryrefslogtreecommitdiffstats
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
parentae503410da7b3c55dce4c45ca24e59b514c9ce5b (diff)
downloadFreeBSD-src-f781b4eab2127109ca56df4056f960a6448fa5e0.zip
FreeBSD-src-f781b4eab2127109ca56df4056f960a6448fa5e0.tar.gz
Backout my last commit.
Requested by: bde
-rw-r--r--sys/amd64/include/cpufunc.h8
-rw-r--r--sys/i386/include/cpufunc.h8
2 files changed, 8 insertions, 8 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);
}
diff --git a/sys/i386/include/cpufunc.h b/sys/i386/include/cpufunc.h
index 3fe22ac..c7f9ace 100644
--- a/sys/i386/include/cpufunc.h
+++ b/sys/i386/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