Kernel: IDT flush only once in initialization

This commit is contained in:
Bananymous 2023-01-22 01:36:21 +02:00
parent 6e24ef8323
commit 558374a47c
1 changed files with 1 additions and 1 deletions

View File

@ -179,13 +179,13 @@ namespace IDT
{ {
s_idt[index].low = 0x00080000 | ((uint32_t)(f) & 0x0000ffff); s_idt[index].low = 0x00080000 | ((uint32_t)(f) & 0x0000ffff);
s_idt[index].high = ((uint32_t)(f) & 0xffff0000) | 0x8e00; s_idt[index].high = ((uint32_t)(f) & 0xffff0000) | 0x8e00;
flush_idt();
} }
void register_irq_handler(uint8_t irq, void (*f)()) void register_irq_handler(uint8_t irq, void (*f)())
{ {
s_irq_handlers[IRQ_VECTOR_BASE + irq] = f; s_irq_handlers[IRQ_VECTOR_BASE + irq] = f;
register_interrupt_handler(IRQ_VECTOR_BASE + irq, handle_irq_common); register_interrupt_handler(IRQ_VECTOR_BASE + irq, handle_irq_common);
flush_idt();
} }
void initialize() void initialize()