diff options
author | dzwdz | 2022-08-04 15:58:54 +0200 |
---|---|---|
committer | dzwdz | 2022-08-04 15:58:54 +0200 |
commit | 81a58004d51547d074b4218f906b0b95f2b2c5dc (patch) | |
tree | 4301047fc342e165bc5a043a04b5fed44b8e8084 /src/kernel/arch/amd64/interrupts/isr.c | |
parent | 4a844820866094ff7d57435a16b7c23a9126814d (diff) |
syscalls: add _syscall_sleep()
Diffstat (limited to 'src/kernel/arch/amd64/interrupts/isr.c')
-rw-r--r-- | src/kernel/arch/amd64/interrupts/isr.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/kernel/arch/amd64/interrupts/isr.c b/src/kernel/arch/amd64/interrupts/isr.c index 71da27b..0bfd865 100644 --- a/src/kernel/arch/amd64/interrupts/isr.c +++ b/src/kernel/arch/amd64/interrupts/isr.c @@ -3,6 +3,7 @@ #include <kernel/arch/amd64/interrupts/irq.h> #include <kernel/arch/amd64/interrupts/isr.h> #include <kernel/arch/amd64/port_io.h> +#include <kernel/arch/amd64/time.h> #include <kernel/arch/generic.h> #include <kernel/panic.h> #include <kernel/proc.h> @@ -28,6 +29,11 @@ void isr_stage3(int interrupt, uint64_t *stackframe) { isr_test_interrupt_called = true; return; + case IRQ_IBASE + IRQ_PIT: + pit_irq(); + irq_eoi(IRQ_PIT); + return; + case IRQ_IBASE + IRQ_PS2: ps2_irq(); irq_eoi(IRQ_PS2); |