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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Palmer Dabbelt <[email protected]>
1 parent 66f1e68 commit 5daa372

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)