summaryrefslogtreecommitdiffstats
path: root/arch/riscv/mm/init.c
diff options
context:
space:
mode:
authorMyrtle Shah <gatecat@ds0.me>2022-01-20 15:33:37 +0000
committerPalmer Dabbelt <palmer@rivosinc.com>2022-02-04 11:11:07 -0800
commit3c04d84508b54fcf524093b0d4a718680ed67f0f (patch)
treed3f7053b90b2d64d9e40eb866427f25ee4e873d0 /arch/riscv/mm/init.c
parent6a00ef4493706a23120057fafbc62379bcde11ec (diff)
downloadlinux-3c04d84508b54fcf524093b0d4a718680ed67f0f.tar.bz2
riscv: Fix XIP_FIXUP_FLASH_OFFSET
There were several problems with the calculation. Not only was an 'and' being computed into t1 but thrown away; but the 'and' itself would cause problems if the granularity of the XIP physical address was less than XIP_OFFSET - in my case I had the kernel image at 2MB in SPI flash. Fixes: f9ace4ede49b ("riscv: remove .text section size limitation for XIP") Cc: stable@vger.kernel.org Signed-off-by: Myrtle Shah <gatecat@ds0.me> Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Diffstat (limited to 'arch/riscv/mm/init.c')
0 files changed, 0 insertions, 0 deletions