aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/src/memory
diff options
context:
space:
mode:
authorFabian Imhof <fabian.imhof@ost.ch>2025-03-13 15:46:16 +0000
committerFabian Imhof <fabian.imhof@ost.ch>2025-03-13 15:46:16 +0000
commit11db9338dac611ea32e202add5ce5055b54ebb58 (patch)
treefa68d328a1fe5e07e52e32aac866a0bcc57094ab /arch/x86_64/src/memory
parentbdbe6d4bc0f2966541bcd5a47c1a4ad9cbff16fa (diff)
downloadteachos-11db9338dac611ea32e202add5ce5055b54ebb58.tar.xz
teachos-11db9338dac611ea32e202add5ce5055b54ebb58.zip
fixup typing and continue adding gdt
Diffstat (limited to 'arch/x86_64/src/memory')
-rw-r--r--arch/x86_64/src/memory/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86_64/src/memory/main.cpp b/arch/x86_64/src/memory/main.cpp
index abc7431..a920a20 100644
--- a/arch/x86_64/src/memory/main.cpp
+++ b/arch/x86_64/src/memory/main.cpp
@@ -38,8 +38,8 @@ namespace teachos::arch::memory
auto const memory_information = multiboot::read_multiboot2();
allocator::area_frame_allocator allocator(memory_information);
- cpu::set_cr0_bit(memory::cpu::cr0_flags::WRITE_PROTECT);
- cpu::set_efer_bit(memory::cpu::efer_flags::NXE);
+ kernel::cpu::set_cr0_bit(kernel::cpu::cr0_flags::WRITE_PROTECT);
+ kernel::cpu::set_efer_bit(kernel::cpu::efer_flags::NXE);
paging::kernel_mapper kernel(allocator, memory_information);
auto & active_table = kernel.remap_kernel();