aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/src/kernel/cpu
diff options
context:
space:
mode:
authorMatteo Gmür <matteo.gmuer1@ost.ch>2025-04-27 14:07:33 +0000
committerMatteo Gmür <matteo.gmuer1@ost.ch>2025-04-27 14:07:33 +0000
commit13dd2bd5a88ec7efeadf8586778f2c5a26d8cd9e (patch)
tree9dcf8c9efeaa74f136a796531caee323aceaae37 /arch/x86_64/src/kernel/cpu
parent187eba4eca3ea46d8c26419168e525242338dae4 (diff)
downloadteachos-13dd2bd5a88ec7efeadf8586778f2c5a26d8cd9e.tar.xz
teachos-13dd2bd5a88ec7efeadf8586778f2c5a26d8cd9e.zip
Move not public methods into anonymous namespace
Diffstat (limited to 'arch/x86_64/src/kernel/cpu')
-rw-r--r--arch/x86_64/src/kernel/cpu/msr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86_64/src/kernel/cpu/msr.cpp b/arch/x86_64/src/kernel/cpu/msr.cpp
index 6249f8f..9c474a1 100644
--- a/arch/x86_64/src/kernel/cpu/msr.cpp
+++ b/arch/x86_64/src/kernel/cpu/msr.cpp
@@ -16,7 +16,7 @@ namespace teachos::arch::kernel::cpu
auto write_msr(uint32_t msr, uint64_t value) -> void
{
- uint32_t low = value & 0xFFFFFFFF;
+ uint32_t low = value;
uint32_t high = value >> 32;
asm volatile("wrmsr"
: /* no output from call */