SMP and timer interrupts

This commit is contained in:
2025-12-23 19:50:37 +01:00
parent 259aa732c8
commit c16170e4c2
31 changed files with 1766 additions and 88 deletions

18
kernel/irq/irq.h Normal file
View File

@@ -0,0 +1,18 @@
#ifndef _KERNEL_IRQ_IRQ_H
#define _KERNEL_IRQ_IRQ_H
#include <libk/std.h>
struct irq {
struct irq* next;
void (*func) (void*);
void* arg;
uint32_t irq_num;
};
bool irq_attach (void (*func) (void*), void* arg, uint32_t irq_num);
void irq_detach (void (*func) (void*));
void irq_invoke_each (uint32_t irq_num);
#endif // _KERNEL_IRQ_IRQ_H