aboutsummaryrefslogtreecommitdiff
path: root/arch/riscv/cpu/jh7110/spl.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/riscv/cpu/jh7110/spl.c')
-rw-r--r--arch/riscv/cpu/jh7110/spl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/riscv/cpu/jh7110/spl.c b/arch/riscv/cpu/jh7110/spl.c
index 72adcefa0e..7da6c261bc 100644
--- a/arch/riscv/cpu/jh7110/spl.c
+++ b/arch/riscv/cpu/jh7110/spl.c
@@ -77,8 +77,8 @@ void harts_early_init(void)
* If it is not cleared, the ECC part is invalid, and an ECC error
* will be reported when reading data.
*/
- ptr = (ulong *)&__bss_end;
- len = L2_LIM_MEM_END - (ulong)&__bss_end;
+ ptr = (ulong *)__bss_end;
+ len = L2_LIM_MEM_END - (ulong)__bss_end;
remain = len % sizeof(ulong);
len /= sizeof(ulong);