feat: refactor to use gcc types
This commit is contained in:
@@ -123,15 +123,15 @@ extern void irq15();
|
||||
#define IRQ15 47
|
||||
|
||||
typedef struct {
|
||||
u32 ds;
|
||||
u32 edi, esi, ebp, esp, ebx, edx, ecx, eax;
|
||||
u32 int_no, err_code;
|
||||
u32 eip, cs, eflags, useresp, ss;
|
||||
uint32_t ds;
|
||||
uint32_t edi, esi, ebp, esp, ebx, edx, ecx, eax;
|
||||
uint32_t int_no, err_code;
|
||||
uint32_t eip, cs, eflags, useresp, ss;
|
||||
} registers_t;
|
||||
|
||||
typedef void (*isr_t)(registers_t);
|
||||
|
||||
void register_interrupt_handler(u8 n, isr_t handler);
|
||||
void register_interrupt_handler(uint8_t n, isr_t handler);
|
||||
|
||||
void isr_install();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user