aboutsummaryrefslogtreecommitdiff
path: root/kernel/l0/idt.c
diff options
context:
space:
mode:
authorAlex Auvolat <alex.auvolat@ens.fr>2014-12-07 11:49:52 +0100
committerAlex Auvolat <alex.auvolat@ens.fr>2014-12-07 11:49:52 +0100
commitd7aaba8c85cc71f3184cddcf20b740c5157c864d (patch)
treed99c9d6765eb433c73498c5e99ebcdb088c0e7e6 /kernel/l0/idt.c
parent26b68c108664cb54089613bdbc54624ed66f7fda (diff)
downloadmacroscope-d7aaba8c85cc71f3184cddcf20b740c5157c864d.tar.gz
macroscope-d7aaba8c85cc71f3184cddcf20b740c5157c864d.zip
Refactor kmalloc & tests in kmain.
Diffstat (limited to 'kernel/l0/idt.c')
-rw-r--r--kernel/l0/idt.c4
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. */