aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64
diff options
context:
space:
mode:
authorMatteo Gmür <matteo.gmuer1@ost.ch>2025-04-07 15:05:30 +0000
committerMatteo Gmür <matteo.gmuer1@ost.ch>2025-04-07 15:05:30 +0000
commit3a95e601bbcb64fd80d9d5d9bd6e1f6d3c31a89b (patch)
tree5d0d39c4380f121bd170643c7042f10468168873 /arch/x86_64
parent350aedae0e50749f9821ac7dc6b8316cf35f24bb (diff)
downloadteachos-3a95e601bbcb64fd80d9d5d9bd6e1f6d3c31a89b.tar.xz
teachos-3a95e601bbcb64fd80d9d5d9bd6e1f6d3c31a89b.zip
Adjust idt flags bitset
Diffstat (limited to 'arch/x86_64')
-rw-r--r--arch/x86_64/include/arch/context_switching/interrupt_descriptor_table/idt_flags.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86_64/include/arch/context_switching/interrupt_descriptor_table/idt_flags.hpp b/arch/x86_64/include/arch/context_switching/interrupt_descriptor_table/idt_flags.hpp
index 4e8b32c..948f478 100644
--- a/arch/x86_64/include/arch/context_switching/interrupt_descriptor_table/idt_flags.hpp
+++ b/arch/x86_64/include/arch/context_switching/interrupt_descriptor_table/idt_flags.hpp
@@ -18,8 +18,8 @@ namespace teachos::arch::context_switching::interrupt_descriptor_table
*/
enum bitset : uint8_t
{
- INTERRUPT_GATE = 0b1110, ///< The actual type of gate segment is a interrupt gate.
- TRAP_GATE = 0b1111, ///< The actual type of gate segment is a trap gate.
+ INTERRUPT_GATE = 0b01110, ///< The actual type of gate segment is a interrupt gate.
+ TRAP_GATE = 0b01111, ///< The actual type of gate segment is a trap gate.
DESCRIPTOR_LEVEL_KERNEL =
0U << 5U, ///< Highest privileged level used by the kernel to allow for full access of resources.
DESCRIPTOR_LEVEL_ADMIN =