RISC-V: Setup exception vector early
authorAtish Patra <atish.patra@wdc.com>
Wed, 15 Jul 2020 23:30:06 +0000 (16:30 -0700)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Thu, 30 Jul 2020 18:37:48 +0000 (11:37 -0700)
commit79b1feba54558bfb7df7c516dab29a7c9dba093c
tree9ca9147c34ce65cb5e59485675978dca7b21d7dc
parent925ac7b6636b6d6a195e93b2179741d3589f4be1
RISC-V: Setup exception vector early

The trap vector is set only in trap_init which may be too late in some
cases. Early ioremap/efi spits many warning messages which may be useful.

Setup the trap vector early so that any warning/bug can be handled before
generic code invokes trap_init.

Signed-off-by: Atish Patra <atish.patra@wdc.com>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
arch/riscv/kernel/head.S
arch/riscv/kernel/smpboot.c
arch/riscv/kernel/traps.c