From a251c14f1a745f3388ce73a5a45ebc73cd1782b5 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Sat, 16 Jul 2022 22:50:34 +0200 Subject: amd64: back at the shell! --- src/kernel/arch/amd64/boot.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/kernel/arch/amd64/boot.c') 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); -- cgit v1.2.3