diff options
| author | Felix Morgner <felix.morgner@ost.ch> | 2025-11-21 14:55:10 +0100 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@ost.ch> | 2025-11-21 14:55:10 +0100 |
| commit | 7f935cdc3e57d80c4ef83760e1a616c33684271d (patch) | |
| tree | 802b0eddc71febcccf0a7ff1ce30daebec6b959b /arch | |
| parent | a5ca21e45e9c8ead0b5895771c0b2f3fe3baf96b (diff) | |
| download | teachos-7f935cdc3e57d80c4ef83760e1a616c33684271d.tar.xz teachos-7f935cdc3e57d80c4ef83760e1a616c33684271d.zip | |
x86_64: fix enabling of write protection
Diffstat (limited to 'arch')
| -rw-r--r-- | arch/x86_64/src/kapi/memory.cpp | 2 |
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 |
