aboutsummaryrefslogtreecommitdiffstats
path: root/idt.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'idt.cpp')
-rw-r--r--idt.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/idt.cpp b/idt.cpp
index 8c4a796..5380c9e 100644
--- a/idt.cpp
+++ b/idt.cpp
@@ -19,9 +19,9 @@ static constexpr std::uint8_t TrapGate32 = 0xF;
struct idt_entry_bits {
std::uint32_t offset_low : 16;
std::uint32_t segment_selector : 16;
- std::uint32_t rsvd : 8;
+ std::uint32_t rsvd : 8 = 0;
std::uint32_t gate_type : 4;
- std::uint32_t rsvd2 : 1;
+ std::uint32_t rsvd2 : 1 = 0;
std::uint32_t dpl : 2;
std::uint32_t present : 1;
std::uint32_t offset_high : 16;