]> git.baikalelectronics.ru Git - kernel.git/commit
riscv: fix misalgned trap vector base address
authorChen Lu <181250012@smail.nju.edu.cn>
Mon, 18 Oct 2021 05:22:38 +0000 (13:22 +0800)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Wed, 27 Oct 2021 20:08:01 +0000 (13:08 -0700)
commit28cfc6b6963244a36b9a51b481d1c465e497b040
tree6d15e22973f2393400af5be00117a311edad2d9d
parent5d1e41d729e456e8db7054f1e48ba080fc3cc007
riscv: fix misalgned trap vector base address

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: d4fdb6abb614 ("RISC-V: Move relocate and few other functions out of __init")
Cc: stable@vger.kernel.org
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
arch/riscv/kernel/head.S