mirror of
https://github.com/torvalds/linux.git
synced 2026-06-07 05:55:44 +02:00
riscv: fix misalgned trap vector base address
commit64a19591a2upstream. The trap vector marked by label .Lsecondary_park must align on a 4-byte boundary, as the {m,s}tvec is defined to require 4-byte alignment. Signed-off-by: Chen Lu <181250012@smail.nju.edu.cn> Reviewed-by: Anup Patel <anup.patel@wdc.com> Fixes:e011995e82("RISC-V: Move relocate and few other functions out of __init") Cc: stable@vger.kernel.org Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
acb8832f6a
commit
7a4cf25d83
|
|
@ -175,6 +175,7 @@ setup_trap_vector:
|
||||||
csrw CSR_SCRATCH, zero
|
csrw CSR_SCRATCH, zero
|
||||||
ret
|
ret
|
||||||
|
|
||||||
|
.align 2
|
||||||
.Lsecondary_park:
|
.Lsecondary_park:
|
||||||
/* We lack SMP support or have too many harts, so park this hart */
|
/* We lack SMP support or have too many harts, so park this hart */
|
||||||
wfi
|
wfi
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user