diff options
| author | Matteo Gmür <matteo.gmuer1@ost.ch> | 2025-03-18 10:48:24 +0000 |
|---|---|---|
| committer | Matteo Gmür <matteo.gmuer1@ost.ch> | 2025-03-18 10:48:24 +0000 |
| commit | fd557fb19c4ad25fbcb1368a73fddd91921496fd (patch) | |
| tree | 0b1350083eefcae329250a75245a6aefdbb67a44 /arch/x86_64/src/context_switching | |
| parent | 3c01f820a064f3120a46aa3afdd9f88ce9e00db3 (diff) | |
| download | teachos-fd557fb19c4ad25fbcb1368a73fddd91921496fd.tar.xz teachos-fd557fb19c4ad25fbcb1368a73fddd91921496fd.zip | |
Fix invalid bit values in access byte and typo in create_segment_descriptor method
Diffstat (limited to 'arch/x86_64/src/context_switching')
| -rw-r--r-- | arch/x86_64/src/context_switching/descriptor_table/global_descriptor_table.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86_64/src/context_switching/descriptor_table/global_descriptor_table.cpp b/arch/x86_64/src/context_switching/descriptor_table/global_descriptor_table.cpp index b338d9d..578e264 100644 --- a/arch/x86_64/src/context_switching/descriptor_table/global_descriptor_table.cpp +++ b/arch/x86_64/src/context_switching/descriptor_table/global_descriptor_table.cpp @@ -19,7 +19,7 @@ namespace teachos::arch::context_switching::descriptor_table } else if (access_level == access_level::USER) { - access_level_bitset = access_byte::ACCESS_LEVEL_USER; + access_level_bitset |= access_byte::ACCESS_LEVEL_USER; } uint8_t gdt_flags_bitset = gdt_flags::GRANULARITY; |
