aboutsummaryrefslogtreecommitdiffstats
path: root/idt.cpp
diff options
context:
space:
mode:
authorClyne Sullivan <clyne@bitgloo.com>2024-09-30 10:59:59 -0400
committerClyne Sullivan <clyne@bitgloo.com>2024-09-30 10:59:59 -0400
commit85c8fd05f1a0c0224882c4fafa60003d3ef56cf3 (patch)
treec86b968c5a53c0767c00116c6fc03f60c8e3aa64 /idt.cpp
parentabfdd6eb3ed61d13a47735812eca0028caf6b6da (diff)
compile with wall,extra,error,pedantic
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;