This commit is contained in:
2025-08-15 20:46:11 +02:00
parent c6c12d93a0
commit 922fee88c7
4 changed files with 53 additions and 2 deletions

24
kernel/hal/x86_64/idt.h Normal file
View File

@ -0,0 +1,24 @@
#ifndef HAL_IDT_H_
#define HAL_IDT_H_
#include <stdint.h>
#include "compiler/attr.h"
typedef struct {
uint16_t isrlow;
uint16_t kernelcs;
uint8_t ist;
uint8_t attrs;
uint16_t isrmid;
uint32_t isrhigh;
uint32_t resv;
} PACKED IdtGate;
typedef struct {
uint16_t limit;
uint64_t base;
} PACKED Idt;
void idt_init(void);
#endif // HAL_IDT_H_