powerpc/traps: factor common code from program check and emulation assist
authorNicholas Piggin <npiggin@gmail.com>
Sun, 7 Feb 2021 12:56:43 +0000 (22:56 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 8 Feb 2021 13:02:12 +0000 (00:02 +1100)
commitfd3f1e0f139f1314ff97438eebaa1f9d216e10a2
tree218e5c1fd5d3397d8f08fa67eeedac296612d5ed
parent25b7e6bb743ca5a375bb89522a2c2bec840d5fc3
powerpc/traps: factor common code from program check and emulation assist

Move the program check handling into a function called by both, rather
than have the emulation assist handler call the program check handler.

This allows each of these handlers to be implemented with "interrupt
wrappers" in a later change.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/1612702475.d6qyt6qtfy.astroid@bobo.none
arch/powerpc/kernel/traps.c