diff options
Diffstat (limited to 'src/kernel/interrupts/idt.c')
-rw-r--r-- | src/kernel/interrupts/idt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/kernel/interrupts/idt.c b/src/kernel/interrupts/idt.c index 532435a..a01f1c1 100644 --- a/src/kernel/interrupts/idt.c +++ b/src/kernel/interrupts/idt.c @@ -10,7 +10,7 @@ struct idt_entry { } __attribute__((packed)); struct idt_ptr { - unsigned short limit; + u16 limit; void *base; } __attribute__((packed)); @@ -21,7 +21,7 @@ struct idt_ptr idtp; // Defined in idt.asm extern void idt_load(); -void idt_set_gate(unsigned char num, unsigned long base, unsigned short sel, unsigned char flags) +void idt_set_gate(u8 num, unsigned long base, u16 sel, u8 flags) { // Specify the interrupt routine's base address idt[num].base_low = (u16)(base & 0xFFFF); |