aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/src/context_switching
diff options
context:
space:
mode:
authorMatteo Gmür <matteo.gmuer1@ost.ch>2025-03-18 10:48:24 +0000
committerMatteo Gmür <matteo.gmuer1@ost.ch>2025-03-18 10:48:24 +0000
commitfd557fb19c4ad25fbcb1368a73fddd91921496fd (patch)
tree0b1350083eefcae329250a75245a6aefdbb67a44 /arch/x86_64/src/context_switching
parent3c01f820a064f3120a46aa3afdd9f88ce9e00db3 (diff)
downloadteachos-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.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;