diff options
Diffstat (limited to 'kernel/l0/idt.c')
-rw-r--r-- | kernel/l0/idt.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/kernel/l0/idt.c b/kernel/l0/idt.c index 8562636..2f244e3 100644 --- a/kernel/l0/idt.c +++ b/kernel/l0/idt.c @@ -222,7 +222,9 @@ void idt_init() { idt_ptr.base = (uint32_t)&idt_entries; asm volatile ("lidt %0"::"m"(idt_ptr):"memory"); - asm volatile ("sti"); // from now on we accept interruptions... although we don't do much with them + + // Some setup calls that come later on are not preemptible, + // so we wait until then to enable interrupts. } /* Sets up an IRQ handler for given IRQ. */ |