:: commit 85a500a668e5697dcd00d6b33fa90882dafe8289

mintsuki <mintsuki@protonmail.com> — 2021-07-02 23:45

parents: 05e7c27f01

multiboot1: Fix broken cast

diff --git a/stage23/protos/multiboot1.c b/stage23/protos/multiboot1.c
index 44c29e02..83e3e204 100644
--- a/stage23/protos/multiboot1.c
+++ b/stage23/protos/multiboot1.c
@@ -135,7 +135,7 @@ void multiboot1_load(char *config, char *cmdline) {
 
             char *cmdline = config_get_value(config, i, "MODULE_STRING");
 
-            void *module_addr = (void *)ALIGN_UP(kernel_top, 4096);
+            void *module_addr = (void *)(uintptr_t)ALIGN_UP(kernel_top, 4096);
             memmap_alloc_range((uintptr_t)module_addr, f.size, MEMMAP_KERNEL_AND_MODULES,
                                true, true, false, false);
             kernel_top = (uintptr_t)module_addr + f.size;
tab: 248 wrap: offon