From b6b7220a47e19b422fb470cffb4675f0a70e94f3 Mon Sep 17 00:00:00 2001 From: Xiang W Date: Wed, 16 Mar 2022 00:22:39 +0800 Subject: [PATCH] firmware: Fix code for accessing hart_count and stack_size lwu exists under the current rv64 and should also exist under the rv128 in the future, so I modified the conditions of conditional compilation so that it can adapt to the future situation Signed-off-by: Xiang W Reviewed-by: Anup Patel --- firmware/fw_base.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firmware/fw_base.S b/firmware/fw_base.S index ab3e1b39..07be4c4b 100644 --- a/firmware/fw_base.S +++ b/firmware/fw_base.S @@ -259,7 +259,7 @@ _bss_zero: * s8 -> HART Stack Size */ lla a4, platform -#if __riscv_xlen == 64 +#if __riscv_xlen > 32 lwu s7, SBI_PLATFORM_HART_COUNT_OFFSET(a4) lwu s8, SBI_PLATFORM_HART_STACK_SIZE_OFFSET(a4) #else