powerpc/64s/exception: simplify hmi control flow
authorNicholas Piggin <npiggin@gmail.com>
Fri, 28 Jun 2019 06:33:22 +0000 (16:33 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 3 Jul 2019 05:19:35 +0000 (15:19 +1000)
commit293c2e27b999e431ad5f9df3386bea37b18fce53
treea515ef1f27c42386cb55587b3991b8d76e763042
parentf34c9675ca594bea6f813872a470e1b8b077d454
powerpc/64s/exception: simplify hmi control flow

Branch to the relocated 0xc000 address early (still in real mode), to
simplify subsequent branches. Have the virt mode handler avoid just
'windup' and redo the exception from scratch, rather than branching
back to the trampoline.

Rearrange the stack setup instruction location to match the system
reset handler (e.g., right before EXCEPTION_PROLOG_COMMON).

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/exceptions-64s.S