[PATCH] riscv: fix jal offsets in patched alternatives

Palmer Dabbelt palmer at rivosinc.com
Tue Jan 24 19:48:47 PST 2023


On Fri, 13 Jan 2023 22:22:05 +0100, Heiko Stuebner wrote:
> From: Jisheng Zhang <jszhang at kernel.org>
> 
> Alternatives live in a different section, so offsets used by jal
> instruction will point to wrong locations after the patch got applied.
> 
> Similar to arm64, adjust the location to consider that offset.
> 
> [...]

Applied, thanks!

[1/1] riscv: fix jal offsets in patched alternatives
      https://git.kernel.org/palmer/c/9d5567ccf96f

Best regards,
-- 
Palmer Dabbelt <palmer at rivosinc.com>



More information about the linux-riscv mailing list