From 391ed256d21a6ae2e2456d1809f357e6e96e15d1 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Mon, 20 Jan 2020 23:12:54 +0100 Subject: Added pure awesomeness Actually quite some days of work but ok --- src/kernel/interrupts/idt.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/kernel/interrupts/idt.c') diff --git a/src/kernel/interrupts/idt.c b/src/kernel/interrupts/idt.c index 25a9504..026b23c 100644 --- a/src/kernel/interrupts/idt.c +++ b/src/kernel/interrupts/idt.c @@ -24,13 +24,13 @@ extern void idt_load(); void idt_set_gate(unsigned char num, unsigned long base, unsigned short sel, unsigned char flags) { // Specify the interrupt routine's base address - idt[num].base_low = (base & 0xFFFF); - idt[num].base_high = (base >> 16) & 0xFFFF; + idt[num].base_low = (uint16_t) (base & 0xFFFF); + idt[num].base_high = (uint16_t) ((base >> 16) & 0xFFFF); // Set selector/segment of IDT entry idt[num].sel = sel; idt[num].always0 = 0; - idt[num].flags = flags | 0x60; + idt[num].flags = (uint8_t) (flags | 0x60); } // Install IDT -- cgit v1.2.3