diff options
Diffstat (limited to 'src/kernel/arch/amd64/boot.c')
-rw-r--r-- | src/kernel/arch/amd64/boot.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/kernel/arch/amd64/boot.c b/src/kernel/arch/amd64/boot.c index 0e61ed3..56cf8c8 100644 --- a/src/kernel/arch/amd64/boot.c +++ b/src/kernel/arch/amd64/boot.c @@ -15,13 +15,13 @@ static void find_init(struct multiboot_info *multiboot, struct kmain_info *info) { - struct multiboot_mod *module = (void*)multiboot->mods; + struct multiboot_mod *module = (void*)(long)multiboot->mods; kprintf("mods count 0x%x", multiboot->mods_count); if (multiboot->mods_count < 1) { kprintf("can't find init! "); panic_invalid_state(); } - info->init.at = module->start; + info->init.at = (void*)(long)module->start; info->init.size = module->end - module->start; } @@ -34,7 +34,7 @@ void kmain_early(struct multiboot_info *multiboot) { kprintf("irq..."); irq_init(); - info.memtop = (void*) (multiboot->mem_upper * 1024); + info.memtop = (void*)(long)(multiboot->mem_upper * 1024); find_init(multiboot, &info); kprintf("mem...\n"); mem_init(&info); |