diff options
author | dzwdz | 2023-01-25 21:49:14 +0100 |
---|---|---|
committer | dzwdz | 2023-01-25 21:49:14 +0100 |
commit | f9ce893e143a7c2356a0f2204afac1f37d3e54d2 (patch) | |
tree | e93e569328ea61b71e785a52964238dc032aeefd /src/kernel/arch/amd64/time.c | |
parent | c24a9376b4a048a3f9408df2d47eaad367459bd7 (diff) |
kernel/irq: use a lookup table for irqs
Diffstat (limited to 'src/kernel/arch/amd64/time.c')
-rw-r--r-- | src/kernel/arch/amd64/time.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/kernel/arch/amd64/time.c b/src/kernel/arch/amd64/time.c index 0e40521..aa7603c 100644 --- a/src/kernel/arch/amd64/time.c +++ b/src/kernel/arch/amd64/time.c @@ -1,3 +1,5 @@ +#include <kernel/arch/amd64/boot.h> +#include <kernel/arch/amd64/interrupts.h> #include <kernel/arch/amd64/time.h> #include <kernel/panic.h> #include <kernel/proc.h> @@ -48,3 +50,7 @@ void timer_deschedule(Proc *p) { update_goal(); } + +void timer_init(void) { + irq_fn[IRQ_PIT] = pit_irq; +} |