Don't return garbage in high 16 bits.
This commit is contained in:
parent
5a2409f32c
commit
2bdf11638e
@ -444,16 +444,16 @@ invlpg(u_int addr)
|
|||||||
static __inline u_int
|
static __inline u_int
|
||||||
rfs(void)
|
rfs(void)
|
||||||
{
|
{
|
||||||
u_int sel;
|
u_short sel;
|
||||||
__asm __volatile("movl %%fs,%0" : "=rm" (sel));
|
__asm __volatile("movw %%fs,%0" : "=rm" (sel));
|
||||||
return (sel);
|
return (sel);
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline u_int
|
static __inline u_int
|
||||||
rgs(void)
|
rgs(void)
|
||||||
{
|
{
|
||||||
u_int sel;
|
u_short sel;
|
||||||
__asm __volatile("movl %%gs,%0" : "=rm" (sel));
|
__asm __volatile("movw %%gs,%0" : "=rm" (sel));
|
||||||
return (sel);
|
return (sel);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -444,16 +444,16 @@ invlpg(u_int addr)
|
|||||||
static __inline u_int
|
static __inline u_int
|
||||||
rfs(void)
|
rfs(void)
|
||||||
{
|
{
|
||||||
u_int sel;
|
u_short sel;
|
||||||
__asm __volatile("movl %%fs,%0" : "=rm" (sel));
|
__asm __volatile("movw %%fs,%0" : "=rm" (sel));
|
||||||
return (sel);
|
return (sel);
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline u_int
|
static __inline u_int
|
||||||
rgs(void)
|
rgs(void)
|
||||||
{
|
{
|
||||||
u_int sel;
|
u_short sel;
|
||||||
__asm __volatile("movl %%gs,%0" : "=rm" (sel));
|
__asm __volatile("movw %%gs,%0" : "=rm" (sel));
|
||||||
return (sel);
|
return (sel);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user