#include "../idt.h" static_assert(sizeof(IDT::Entry) == 8); // size of IDT::Entry in protected mode is 64 bits IDT::Entry::Entry(void (*handler)(), uint16_t select, IDT::InterruptType t) { offset_0_15 = reinterpret_cast(handler) & 0xffff; offset_16_31 = (reinterpret_cast(handler) >> 16) & 0xffff; selector = select; type = t; }