From 55e89275ab17ddda21f74b562da891d6958aa733 Mon Sep 17 00:00:00 2001 From: "E. Almqvist" Date: Sun, 23 Oct 2022 17:46:14 +0200 Subject: [PATCH] Type fix --- kernel/idt.c | 4 ++-- lib/types.h | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/kernel/idt.c b/kernel/idt.c index 2195e3c..d84a620 100644 --- a/kernel/idt.c +++ b/kernel/idt.c @@ -36,11 +36,11 @@ void idt_set_desc(uint8 idx, void* isr, uint8 flags) { uint* gdt_code_ptr = (uint*)0xee88; uint8 gdt_code = *gdt_code_ptr; - desc->offset_1 = (uint) isr & 0xffff; + desc->offset_1 = (ulong) isr & 0xffff; desc->selector = gdt_code; // kernel code selector for the GDT desc->reserved = 0; desc->type_attr = flags; - desc->offset_2 = (uint) isr >> 16; + desc->offset_2 = (ulong) isr >> 16; } extern void* isr_stub_table[]; diff --git a/lib/types.h b/lib/types.h index 75d2baa..a63b46a 100644 --- a/lib/types.h +++ b/lib/types.h @@ -13,6 +13,7 @@ typedef unsigned short int uint16; // POINTERS typedef char* pointer; typedef unsigned long int uintptr; +typedef unsigned long ulong; // BOOL typedef int bool;