diff options
author | davidxu <davidxu@FreeBSD.org> | 2003-04-20 01:35:21 +0000 |
---|---|---|
committer | davidxu <davidxu@FreeBSD.org> | 2003-04-20 01:35:21 +0000 |
commit | f781b4eab2127109ca56df4056f960a6448fa5e0 (patch) | |
tree | 644dc246d01a74b9fa9ba64b590f444197294239 | |
parent | ae503410da7b3c55dce4c45ca24e59b514c9ce5b (diff) | |
download | FreeBSD-src-f781b4eab2127109ca56df4056f960a6448fa5e0.zip FreeBSD-src-f781b4eab2127109ca56df4056f960a6448fa5e0.tar.gz |
Backout my last commit.
Requested by: bde
-rw-r--r-- | sys/amd64/include/cpufunc.h | 8 | ||||
-rw-r--r-- | sys/i386/include/cpufunc.h | 8 |
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); } |