powerpc/64s: move bad_page_fault handling to C
authorNicholas Piggin <npiggin@gmail.com>
Sat, 30 Jan 2021 13:08:24 +0000 (23:08 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 8 Feb 2021 13:02:10 +0000 (00:02 +1100)
commitf4c03b0e520c5f56e569a8da3fce5ddbd0696742
tree36bfa25dfd766e2c6b8f0555d2453ffef8b85ded
parent4cb8428465148bcca0b6b8593d51f805818a70e0
powerpc/64s: move bad_page_fault handling to C

This simplifies code, and it is also useful when introducing
interrupt handler wrappers when introducing wrapper functionality
that doesn't cope with asm entry code calling into more than one
handler function.

32-bit and 64e still have some such cases, which limits some ways
they can use interrupt wrappers.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210130130852.2952424-15-npiggin@gmail.com
arch/powerpc/kernel/exceptions-64s.S
arch/powerpc/mm/fault.c