powerpc/64s/exception: program check handler do not branch into a macro
authorNicholas Piggin <npiggin@gmail.com>
Fri, 2 Aug 2019 10:56:59 +0000 (20:56 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 30 Aug 2019 01:14:58 +0000 (11:14 +1000)
commit1b3599829a2560fe6c9a5a4a6bb6b2bc4e5bdaee
treed337ded1606b6de5705a0724eeb70aebfe084251
parentc7c5cbb42d6e207a059c64740b1654376619345e
powerpc/64s/exception: program check handler do not branch into a macro

It is clever, but the small code saving is not worth the spaghetti of
jumping to a label in an expanded macro, particularly when the label
is just a number rather than a descriptive name.

So expand the INT_COMMON macro twice, once for the stack and no stack
cases, and branch to those. The slight code size increase is worth
the improved clarity of branches for this non-performance critical
code.

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