• Myrtle Shah's avatar
    riscv: Fix XIP_FIXUP_FLASH_OFFSET · 3c04d845
    Myrtle Shah authored
    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: f9ace4ed ("riscv: remove .text section size limitation for XIP")
    Cc: stable@vger.kernel.org
    Signed-off-by: default avatarMyrtle Shah <gatecat@ds0.me>
    Signed-off-by: default avatarPalmer Dabbelt <palmer@rivosinc.com>
    3c04d845
head.S 9.13 KB