]> git.baikalelectronics.ru Git - kernel.git/commit
riscv: allow different stages with alternatives
authorHeiko Stuebner <heiko@sntech.de>
Wed, 11 May 2022 19:29:11 +0000 (21:29 +0200)
committerPalmer Dabbelt <palmer@rivosinc.com>
Thu, 12 May 2022 04:36:31 +0000 (21:36 -0700)
commit1abee683aaf1ec2b6d01debc81ee6b6ebe1f96d7
treed71e6034b692fd44af4188941af5174d54871705
parent63f52c0ae35e1dfbe25dfcdca2c1aa2784743ff8
riscv: allow different stages with alternatives

Future features may need to be applied at a different
time during boot, so allow defining stages for alternatives
and handling them differently depending on the stage.

Also make the alternatives-location more flexible so that
future stages may provide their own location.

Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Reviewed-by: Philipp Tomsich <philipp.tomsich@vrull.eu>
Link: https://lore.kernel.org/r/20220511192921.2223629-3-heiko@sntech.de
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/errata/sifive/errata.c
arch/riscv/include/asm/alternative.h
arch/riscv/kernel/alternative.c