diff options
Diffstat (limited to 'src/idt.cc')
-rw-r--r-- | src/idt.cc | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) { |