mirror of
https://github.com/JannisHeydemann/BoredOS.git
synced 2026-05-30 02:16:58 +00:00
Initial commit
This commit is contained in:
16
src/kernel/idt.h
Normal file
16
src/kernel/idt.h
Normal 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
|
||||
Reference in New Issue
Block a user