riscv/mm: Introduce a die_kernel_fault() helper function
authorEric Lin <tesheng@andestech.com>
Fri, 4 Dec 2020 05:42:58 +0000 (13:42 +0800)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Fri, 8 Jan 2021 01:19:18 +0000 (17:19 -0800)
commit21733cb51847132567e0f5f568f126de08669842
tree9171cf088712ce0d780cb051a372fcb93b7e7ffe
parent641e8cd2cbf0451e118fca33d5db10124dd87458
riscv/mm: Introduce a die_kernel_fault() helper function

Like arm64, this patch adds a die_kernel_fault() helper
to ensure the same semantics for the different kernel faults.

Signed-off-by: Eric Lin <tesheng@andestech.com>
Reviewed-by: Pekka Enberg <penberg@kernel.org>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
arch/riscv/mm/fault.c