aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/src
diff options
context:
space:
mode:
authorFabian Imhof <fabian.imhof@ost.ch>2025-04-05 12:04:12 +0000
committerFabian Imhof <fabian.imhof@ost.ch>2025-04-05 12:04:12 +0000
commitc01d080bdc6bd843e840e4834424fe587286b274 (patch)
tree44e60d0df36e03e7d2d1393e261361818cffcca2 /arch/x86_64/src
parent8b66e4cd1d1487fefbae459f556396db61497a6b (diff)
downloadteachos-c01d080bdc6bd843e840e4834424fe587286b274.tar.xz
teachos-c01d080bdc6bd843e840e4834424fe587286b274.zip
fix segment_selector
Diffstat (limited to 'arch/x86_64/src')
-rw-r--r--arch/x86_64/src/context_switching/interrupt_descriptor_table/interrupt_descriptor_table.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86_64/src/context_switching/interrupt_descriptor_table/interrupt_descriptor_table.cpp b/arch/x86_64/src/context_switching/interrupt_descriptor_table/interrupt_descriptor_table.cpp
index 82114b4..9b62110 100644
--- a/arch/x86_64/src/context_switching/interrupt_descriptor_table/interrupt_descriptor_table.cpp
+++ b/arch/x86_64/src/context_switching/interrupt_descriptor_table/interrupt_descriptor_table.cpp
@@ -14,7 +14,7 @@ namespace teachos::arch::context_switching::interrupt_descriptor_table
interrupt_descriptor_table interrupt_descriptor_table{32};
uint64_t offset = reinterpret_cast<uint64_t>(interrupt_handling::generic_interrupt_handler);
- segment_selector selector{2U, segment_selector::REQUEST_LEVEL_KERNEL};
+ segment_selector selector{1U, segment_selector::REQUEST_LEVEL_KERNEL};
ist_offset ist{0U};
idt_flags flags{idt_flags::DESCRIPTOR_LEVEL_KERNEL | idt_flags::INTERRUPT_GATE | idt_flags::PRESENT};