aboutsummaryrefslogtreecommitdiff
path: root/src/idt.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/idt.cc')
-rw-r--r--src/idt.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/idt.cc b/src/idt.cc
index 5022f3e..edf7b37 100644
--- a/src/idt.cc
+++ b/src/idt.cc
@@ -6,7 +6,7 @@
static_assert(sizeof(IDT::Pointer) == 6);
constexpr uint8_t irq_base = 0x20;
-static IDT::Entry table[256];
+__attribute__((section(".constinit"))) static IDT::Entry table[256];
static InterruptHandler* handlers[256] = {nullptr};
bool IDT::install(uint8_t irq, InterruptHandler* h) {