Initial commit

This commit is contained in:
Chris
2026-02-04 20:51:17 +01:00
commit ddac1a791e
132 changed files with 11491 additions and 0 deletions

16
src/kernel/idt.h Normal file
View File

@@ -0,0 +1,16 @@
#ifndef IDT_H
#define IDT_H
#include <stdint.h>
void idt_init(void);
void idt_set_gate(uint8_t vector, void *isr, uint16_t cs, uint8_t flags);
void idt_register_interrupts(void);
void idt_load(void);
// ISR wrappers defined in assembly
extern void isr0_wrapper(void); // Timer
extern void isr1_wrapper(void); // Keyboard
extern void isr12_wrapper(void); // Mouse
#endif