diff options
author | Danny Holman <dholman@gymli.org> | 2024-05-27 14:24:19 -0500 |
---|---|---|
committer | Danny Holman <dholman@gymli.org> | 2024-05-27 14:24:19 -0500 |
commit | e472fbf564a8dee7ec4cb03b3e77a213a017bc76 (patch) | |
tree | 02cdbf5930774478ec32b64759dca7df4d8ee3cc /arch/i386/kernel/pic.c | |
parent | d5e63951bdf8c154bafee11c84816539fde77b81 (diff) |
arch: i386: update all files to use the new libk
Update all the files under arch to make use of the new libk
implementation. Most of these changes are simply path changes in include
directives.
Signed-off-by: Danny Holman <dholman@gymli.org>
Diffstat (limited to 'arch/i386/kernel/pic.c')
-rw-r--r-- | arch/i386/kernel/pic.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/i386/kernel/pic.c b/arch/i386/kernel/pic.c index 3cf1d94..0d29473 100644 --- a/arch/i386/kernel/pic.c +++ b/arch/i386/kernel/pic.c @@ -1,6 +1,6 @@ #include <kernel/pic.h> -static void (*irq_handlers[16])(struct regs *regs); +static void (*irq_handlers[16])(struct isr_frame *frame); void pic_eoi(uint8_t irq) { if (irq >= 8) @@ -38,13 +38,13 @@ uint16_t pic_get_isr(void) { return _pic_get_irq_reg(PIC_READ_ISR); } -void register_irq_handler(uint8_t irq, void (*handler)(struct regs *regs)) { +void register_irq_handler(uint8_t irq, void (*handler)(struct isr_frame *frame)) { irq_handlers[irq] = handler; } -void irq_dispatch(struct regs *regs) { - (*irq_handlers[regs->isr_vector-32])(regs); - pic_eoi(regs->isr_vector-32); +void irq_dispatch(struct isr_frame *frame) { + (*irq_handlers[frame->isr_vector-32])(frame); + pic_eoi(frame->isr_vector-32); return; } |