]> 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)
commit33555d9353d9f7b5ba65265afcb6848bc8909465
treea515ef1f27c42386cb55587b3991b8d76e763042
parent9cd7e8f8d07754656ac56b8d2021aa8ff30df293
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