diff options
| author | David Xu <davidxu@FreeBSD.org> | 2003-04-20 01:35:21 +0000 |
|---|---|---|
| committer | David Xu <davidxu@FreeBSD.org> | 2003-04-20 01:35:21 +0000 |
| commit | d1fc2022c3050661ade8d1b96e598c38b436b458 (patch) | |
| tree | 644dc246d01a74b9fa9ba64b590f444197294239 | |
| parent | 43652a6ba67cb524f61d6787c5641e48ed7d8779 (diff) | |
Notes
| -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 3fe22aca60bd..c7f9ace695f0 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 3fe22aca60bd..c7f9ace695f0 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); } |
