powerpc/64s: Fix power4_fixup_nap placement
authorNicholas Piggin <npiggin@gmail.com>
Tue, 11 Oct 2016 07:47:56 +0000 (18:47 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 11 Oct 2016 10:28:30 +0000 (21:28 +1100)
commit7c8cb4b50f3cc6f4a8f7bfddad6fb5a845df3261
tree9cd41e64baced76df684b8876222185eec50a015
parent05af40e885955065aee8bb7425058eb3e1adca08
powerpc/64s: Fix power4_fixup_nap placement

power4_fixup_nap is called from the "common" handlers, not the virt/real
handlers, therefore it should itself be a common handler. Placing it
down in the trampoline space caused it to go out of reach of its
callers, requiring a trampoline inserted at the start of the text
section, which breaks the fixed section address calculations.

Fixes: da2bc4644c75 ("powerpc/64s: Add new exception vector macros")
Reported-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/exceptions-64s.S