diff options
author | Marvin Borner | 2019-10-27 13:07:06 +0100 |
---|---|---|
committer | Marvin Borner | 2019-10-27 13:07:06 +0100 |
commit | 654934e0b5e5ef08e6fd337d5ceb864289796c66 (patch) | |
tree | 75bb34443cda750c1f5e26d7d6e500b73963e1ae /src/kernel/interrupts | |
parent | 52503f9b654f68f11dea676e9636c2004176ef29 (diff) |
Improved boot process and color scheme
Diffstat (limited to 'src/kernel/interrupts')
-rw-r--r-- | src/kernel/interrupts/idt.c | 2 | ||||
-rw-r--r-- | src/kernel/interrupts/irq.c | 2 | ||||
-rw-r--r-- | src/kernel/interrupts/isr.c | 2 |
3 files changed, 6 insertions, 0 deletions
diff --git a/src/kernel/interrupts/idt.c b/src/kernel/interrupts/idt.c index 635743d..26489c4 100644 --- a/src/kernel/interrupts/idt.c +++ b/src/kernel/interrupts/idt.c @@ -1,4 +1,5 @@ #include <kernel/lib/lib.h> +#include <kernel/system.h> struct idt_entry { unsigned short base_lo; @@ -41,4 +42,5 @@ void idt_install() { memory_set(&idt, 0, sizeof(struct idt_entry) * 256); idt_load(); + vga_log("Installed Interrupt Descriptor Table", 6); } diff --git a/src/kernel/interrupts/irq.c b/src/kernel/interrupts/irq.c index 39cfb23..979b25c 100644 --- a/src/kernel/interrupts/irq.c +++ b/src/kernel/interrupts/irq.c @@ -1,5 +1,6 @@ #include <kernel/io/io.h> #include <kernel/interrupts/interrupts.h> +#include <kernel/system.h> extern void irq0(); @@ -86,6 +87,7 @@ void irq_install() { idt_set_gate(45, (unsigned) irq13, 0x08, 0x8E); idt_set_gate(46, (unsigned) irq14, 0x08, 0x8E); idt_set_gate(47, (unsigned) irq15, 0x08, 0x8E); + vga_log("Installed Interrupt Requests", 8); } // Handle IRQ ISRs diff --git a/src/kernel/interrupts/isr.c b/src/kernel/interrupts/isr.c index 59c6ad7..d03a6de 100644 --- a/src/kernel/interrupts/isr.c +++ b/src/kernel/interrupts/isr.c @@ -106,6 +106,8 @@ void isrs_install() { idt_set_gate(29, (unsigned) isr29, 0x08, 0x8E); idt_set_gate(30, (unsigned) isr30, 0x08, 0x8E); idt_set_gate(31, (unsigned) isr31, 0x08, 0x8E); + + vga_log("Installed Interrupt Service Routines", 7); } // Error exception messages |