Commit 5daa3726 authored by Frederik Haxel's avatar Frederik Haxel Committed by Palmer Dabbelt

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: bee7fbc3 ("RISC-V CPU Idle Support")
Fixes: e7681beb ("RISC-V: Split out the XIP fixups into their own file")
Signed-off-by: default avatarFrederik Haxel <haxel@fzi.de>
Link: https://lore.kernel.org/r/20231212130116.848530-3-haxel@fzi.deSigned-off-by: default avatarPalmer Dabbelt <palmer@rivosinc.com>
parent 66f1e680
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment