From 3fedbb6e1f849c5e0a4033d68201d60c2fc48121 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Sat, 6 Jul 2024 23:37:11 +0300 Subject: core bringup + various warnings + dbg_fdt() is apparently broken, possibly due to UB or something, but it causes some issues with optimizations enabled. Remove it temporarily --- arch/riscv64/kernel/smp.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'arch/riscv64/kernel/smp.c') diff --git a/arch/riscv64/kernel/smp.c b/arch/riscv64/kernel/smp.c index 8d04491..74cc930 100644 --- a/arch/riscv64/kernel/smp.c +++ b/arch/riscv64/kernel/smp.c @@ -93,8 +93,9 @@ void smp_bringup(struct vmem *b, void *fdt) /** @todo try to remember to free these as well */ smp_init_stacks[hartid] = (void *)alloc_page(BASE_PAGE) + BASE_PAGE_SIZE; - r = sbi_hart_start(hartid, - (unsigned long)__pa(riscv_bringup), satp); + + pm_t bringup = (pm_t)__pa(riscv_bringup); + r = sbi_hart_start(hartid, bringup, satp); if (r.error) { warn("failed bringing up hart %ld: %ld\n", -- cgit v1.3