]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit656c16bfe350acc8426e7ff73dc496bfb3d6745d
treea515ef1f27c42386cb55587b3991b8d76e763042
parent120d3c2290fbdddd76492a5b66f82250408df874
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