diff --git a/src/arch/x86_64/kernel/processor.rs b/src/arch/x86_64/kernel/processor.rs index 0ddfdbf1d8..e5003674d2 100644 --- a/src/arch/x86_64/kernel/processor.rs +++ b/src/arch/x86_64/kernel/processor.rs @@ -1079,7 +1079,7 @@ pub fn readfs() -> usize { if cfg!(feature = "fsgsbase") { unsafe { segmentation::rdfsbase() } } else { - unsafe { rdmsr(IA32_GS_BASE) } + unsafe { rdmsr(IA32_FS_BASE) } } .try_into() .unwrap() @@ -1090,7 +1090,7 @@ pub fn readgs() -> usize { if cfg!(feature = "fsgsbase") { unsafe { segmentation::rdgsbase() } } else { - unsafe { rdmsr(IA32_FS_BASE) } + unsafe { rdmsr(IA32_GS_BASE) } } .try_into() .unwrap()