diff options
| author | Matteo Gmür <matteo.gmuer1@ost.ch> | 2025-04-27 14:07:33 +0000 |
|---|---|---|
| committer | Matteo Gmür <matteo.gmuer1@ost.ch> | 2025-04-27 14:07:33 +0000 |
| commit | 13dd2bd5a88ec7efeadf8586778f2c5a26d8cd9e (patch) | |
| tree | 9dcf8c9efeaa74f136a796531caee323aceaae37 /arch/x86_64/src/kernel | |
| parent | 187eba4eca3ea46d8c26419168e525242338dae4 (diff) | |
| download | teachos-13dd2bd5a88ec7efeadf8586778f2c5a26d8cd9e.tar.xz teachos-13dd2bd5a88ec7efeadf8586778f2c5a26d8cd9e.zip | |
Move not public methods into anonymous namespace
Diffstat (limited to 'arch/x86_64/src/kernel')
| -rw-r--r-- | arch/x86_64/src/kernel/cpu/msr.cpp | 2 | ||||
| -rw-r--r-- | arch/x86_64/src/kernel/main.cpp | 1 |
2 files changed, 1 insertions, 2 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 */ diff --git a/arch/x86_64/src/kernel/main.cpp b/arch/x86_64/src/kernel/main.cpp index e737d44..05c879e 100644 --- a/arch/x86_64/src/kernel/main.cpp +++ b/arch/x86_64/src/kernel/main.cpp @@ -63,7 +63,6 @@ namespace teachos::arch::kernel memory::heap::global_heap_allocator::register_heap_allocator(memory::heap::heap_allocator_type::LINKED_LIST); // heap_test(); - context_switching::setup_syscall(); context_switching::switch_to_user_mode(); } } // namespace teachos::arch::kernel |
