aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--arch/x86_64/src/memory/paging/page_entry.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/x86_64/src/memory/paging/page_entry.cpp b/arch/x86_64/src/memory/paging/page_entry.cpp
index aae5013..08702cf 100644
--- a/arch/x86_64/src/memory/paging/page_entry.cpp
+++ b/arch/x86_64/src/memory/paging/page_entry.cpp
@@ -27,8 +27,7 @@ namespace teachos::arch::memory::paging
}
if (!elf_flags.contains_flags(multiboot::elf_section_flags::EXECUTABLE_CODE))
{
- // TODO: Ensure to set the NXE bit, if we don't using this entry flag causes crashes
- // flags = flags.to_ulong() | entry::EXECUTING_CODE_FORBIDDEN;
+ flags = flags.to_ulong() | entry::EXECUTING_CODE_FORBIDDEN;
}
}