diff options
author | Marvin Borner | 2019-09-21 18:07:07 +0200 |
---|---|---|
committer | Marvin Borner | 2019-09-21 18:07:07 +0200 |
commit | c31d465a62fbc0ec3194838db4745585471c1050 (patch) | |
tree | 10e544bc856ea1898e39d6c9304f746aa1d74670 /src/kernel/interrupts | |
parent | d91024fb750356bad65cce5bdef206e530b37c53 (diff) |
Added ACPI based shutdown command
Diffstat (limited to 'src/kernel/interrupts')
-rw-r--r-- | src/kernel/interrupts/irq.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/kernel/interrupts/irq.c b/src/kernel/interrupts/irq.c index cf9e1fe..834b192 100644 --- a/src/kernel/interrupts/irq.c +++ b/src/kernel/interrupts/irq.c @@ -56,16 +56,16 @@ int irq_is_installed(int irq) { // Remap IRQs for protected mode compatibility via the PIC void irq_remap(void) { - send(0x20, 0x11); - send(0xA0, 0x11); - send(0x21, 0x20); - send(0xA1, 0x28); - send(0x21, 0x04); - send(0xA1, 0x02); - send(0x21, 0x01); - send(0xA1, 0x01); - send(0x21, 0x0); - send(0xA1, 0x0); + send_b(0x20, 0x11); + send_b(0xA0, 0x11); + send_b(0x21, 0x20); + send_b(0xA1, 0x28); + send_b(0x21, 0x04); + send_b(0xA1, 0x02); + send_b(0x21, 0x01); + send_b(0xA1, 0x01); + send_b(0x21, 0x0); + send_b(0xA1, 0x0); } // Map ISRs to the correct entries in the IDT @@ -101,9 +101,9 @@ void irq_handler(struct regs *r) { // Send end of interrupt to second (slave) IRQ controller if (r->int_no >= 40) { - send(0xA0, 0x20); + send_b(0xA0, 0x20); } // Send end of interrupt to master interrupt controller - send(0x20, 0x20); + send_b(0x20, 0x20); } |