From 03e12129927b0deba537a11bb5575bef93c57d0f Mon Sep 17 00:00:00 2001 From: Kimplul Date: Sun, 7 Jul 2024 00:49:55 +0300 Subject: fixed crash with dbg_fdt() + Apparently dbg_fdt() itself wasn't buggy, but for whatever reason GCC produced an absolute load to the prefix string in __print_prefix() which caused all the issues. Unclear why, seems like a compiler bug. This commit is more of a workaround, I'd still like to investigate this further. --- src/main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index 169efc3..aaf4cde 100644 --- a/src/main.c +++ b/src/main.c @@ -66,7 +66,7 @@ __noreturn void kernel(void *fdt, uintptr_t load_addr, struct vmem *d) /* start up debugging in kernel IO */ setup_io_dbg(d); - //dbg_fdt(fdt); + dbg_fdt(fdt); setup_arch(fdt); @@ -106,7 +106,6 @@ __noreturn void main(unsigned long hart, void *fdt, uintptr_t load_addr) (void)hart; /** @todo some kind of lottery? */ - pm_t ram_base = __fdt_ram_base(fdt); pm_t ram_size = __fdt_ram_size(fdt); set_ram_base(ram_base); -- cgit v1.3