aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/src/context_switching
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86_64/src/context_switching')
-rw-r--r--arch/x86_64/src/context_switching/descriptor_table/global_descriptor_table.cpp2
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;