aboutsummaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
Diffstat (limited to 'arch')
-rw-r--r--arch/x86_64/src/kapi/memory.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86_64/src/kapi/memory.cpp b/arch/x86_64/src/kapi/memory.cpp
index 4766bb3..6102bee 100644
--- a/arch/x86_64/src/kapi/memory.cpp
+++ b/arch/x86_64/src/kapi/memory.cpp
@@ -49,7 +49,7 @@ namespace teachos::memory
auto enable_cpu_protections() -> void
{
- cpu::x86_64::cr0::clear(cpu::x86_64::cr0::flags::write_protect);
+ cpu::x86_64::cr0::set(cpu::x86_64::cr0::flags::write_protect);
// set_efer_bit(efer_flags::NXE);
}
} // namespace