aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/src
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@ost.ch>2025-11-24 13:16:35 +0100
committerFelix Morgner <felix.morgner@ost.ch>2025-11-24 13:16:35 +0100
commit9ee028e52bd60affded3b90ea8dcd20c93bb5025 (patch)
tree672259a63205ed8efed5dcfc34415c8257577306 /arch/x86_64/src
parent7f935cdc3e57d80c4ef83760e1a616c33684271d (diff)
downloadteachos-9ee028e52bd60affded3b90ea8dcd20c93bb5025.tar.xz
teachos-9ee028e52bd60affded3b90ea8dcd20c93bb5025.zip
x86-64/kapi: reimplement ia32_efer support
Diffstat (limited to 'arch/x86_64/src')
-rw-r--r--arch/x86_64/src/kapi/memory.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/x86_64/src/kapi/memory.cpp b/arch/x86_64/src/kapi/memory.cpp
index 6102bee..d0d966b 100644
--- a/arch/x86_64/src/kapi/memory.cpp
+++ b/arch/x86_64/src/kapi/memory.cpp
@@ -6,7 +6,6 @@
#include "x86_64/boot/boot.hpp"
#include "x86_64/boot/ld.hpp"
-#include "x86_64/cpu/impl/control_registers.hpp"
#include "x86_64/cpu/registers.hpp"
#include "x86_64/memory/region_allocator.hpp"
@@ -50,7 +49,7 @@ namespace teachos::memory
auto enable_cpu_protections() -> void
{
cpu::x86_64::cr0::set(cpu::x86_64::cr0::flags::write_protect);
- // set_efer_bit(efer_flags::NXE);
+ cpu::x86_64::i32_efer::set(cpu::x86_64::i32_efer::flags::execute_disable_bit_enable);
}
} // namespace