soc/cores/cpu/serv: fix crt0 .data initialize

This commit is contained in:
Greg Davill 2020-08-30 10:52:16 +09:30
parent dcd99cc999
commit 632cfcc257
1 changed files with 2 additions and 2 deletions

View File

@ -14,8 +14,8 @@ reset_vector:
la t1, _edata la t1, _edata
la t2, _fdata_rom la t2, _fdata_rom
1: beq t0, t1, 2f 1: beq t0, t1, 2f
lw t3, 0(t0) lw t3, 0(t2)
sw t3, 0(t2) sw t3, 0(t0)
addi t0, t0, 4 addi t0, t0, 4
addi t2, t2, 4 addi t2, t2, 4
j 1b j 1b