diff options
author | Xiang W <wxjstz@126.com> | 2022-03-16 00:22:39 +0800 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2022-03-27 08:53:27 +0530 |
commit | b6b7220a47e19b422fb470cffb4675f0a70e94f3 (patch) | |
tree | 4a29f73c85c71dcc28080aac53af70a920ba0955 /firmware | |
parent | 2dfbd3c0e226c21b978e0a5a1c58893ee6679d15 (diff) | |
download | opensbi-b6b7220a47e19b422fb470cffb4675f0a70e94f3.zip opensbi-b6b7220a47e19b422fb470cffb4675f0a70e94f3.tar.gz opensbi-b6b7220a47e19b422fb470cffb4675f0a70e94f3.tar.bz2 |
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 <wxjstz@126.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/fw_base.S | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/fw_base.S b/firmware/fw_base.S index ab3e1b3..07be4c4 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 |