diff options
author | dzwdz | 2022-07-16 22:50:34 +0200 |
---|---|---|
committer | dzwdz | 2022-07-16 22:50:34 +0200 |
commit | a251c14f1a745f3388ce73a5a45ebc73cd1782b5 (patch) | |
tree | 2eab140ce2bcc729d8836e97a61bd0d731bb44d6 /src/kernel/arch/amd64/boot.c | |
parent | c8ed6aa7476b7f506366d9fe56ed6f2e7a12b40d (diff) |
amd64: back at the shell!
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); |