Skip to content

Commit

Permalink
riscv: Fixed wrong register in XIP_FIXUP_FLASH_OFFSET macro
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Frederik Haxel authored and Palmer Dabbelt committed Jan 10, 2024
1 parent 66f1e68 commit 5daa372
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/riscv/include/asm/xip_fixup.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
add \reg, \reg, t0
.endm
.macro XIP_FIXUP_FLASH_OFFSET reg
la t1, __data_loc
la t0, __data_loc
REG_L t1, _xip_phys_offset
sub \reg, \reg, t1
add \reg, \reg, t0
Expand Down

0 comments on commit 5daa372

Please sign in to comment.