kernel: initial interrupt abstraction implementation

This commit is contained in:
Matheus
2023-04-08 20:13:51 -03:00
parent 1555becce5
commit a9f490b431
3 changed files with 76 additions and 1 deletions
+3 -1
View File
@@ -6,11 +6,13 @@
#include <arch/msr.h>
#include <arch/ist.h>
#include <kernel/interrupt.h>
typedef struct {
uint64_t gdt[7];
ist_t ist;
int lapicid;
long id;
isr_t isr[MAX_ISR_COUNT];
} cpu_t;
static inline cpu_t *_cpu() {