aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/src/kapi
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86_64/src/kapi')
-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