diff options
| author | Felix Morgner <felix.morgner@ost.ch> | 2026-03-16 11:29:42 +0100 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@ost.ch> | 2026-03-16 11:29:42 +0100 |
| commit | 5c251debfbef98360f2e00c938ef88d652469493 (patch) | |
| tree | 78d5a4c1503fd38f6dec64b10792c3bda90762b3 /arch/x86_64/include | |
| parent | 913f40cbf8e578323009c0dcd6a22e99668a0010 (diff) | |
| download | teachos-5c251debfbef98360f2e00c938ef88d652469493.tar.xz teachos-5c251debfbef98360f2e00c938ef88d652469493.zip | |
x86_64/memory: fix page table flag setting
Diffstat (limited to 'arch/x86_64/include')
| -rw-r--r-- | arch/x86_64/include/arch/memory/page_table.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86_64/include/arch/memory/page_table.hpp b/arch/x86_64/include/arch/memory/page_table.hpp index 778c201..e00e0a4 100644 --- a/arch/x86_64/include/arch/memory/page_table.hpp +++ b/arch/x86_64/include/arch/memory/page_table.hpp @@ -334,7 +334,7 @@ namespace arch::memory result |= table_flags::disable_cache; } - if ((flags & mapper_flags::supervisor_only) != mapper_flags::empty) + if ((flags & mapper_flags::supervisor_only) == mapper_flags::empty) { result |= table_flags::user_accessible; } |
