Skip to content

Commit 5daa372

Browse files
fzi-haxelpalmer-dabbelt
authored andcommitted
riscv: Fixed wrong register in XIP_FIXUP_FLASH_OFFSET macro
During the refactoring, a bug was introduced in the rarly used XIP_FIXUP_FLASH_OFFSET macro. Fixes: bee7fbc ("RISC-V CPU Idle Support") Fixes: e7681be ("RISC-V: Split out the XIP fixups into their own file") Signed-off-by: Frederik Haxel <haxel@fzi.de> Link: https://lore.kernel.org/r/20231212130116.848530-3-haxel@fzi.de Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
1 parent 66f1e68 commit 5daa372

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

arch/riscv/include/asm/xip_fixup.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
add \reg, \reg, t0
1414
.endm
1515
.macro XIP_FIXUP_FLASH_OFFSET reg
16-
la t1, __data_loc
16+
la t0, __data_loc
1717
REG_L t1, _xip_phys_offset
1818
sub \reg, \reg, t1
1919
add \reg, \reg, t0

0 commit comments

Comments
 (0)