powerpc/64: Fix an EMIT_BUG_ENTRY in head_64.S
PATCH 1/1 powerpc/64: Fix an EMIT_BUG_ENTRY in head_64.S
Commit 63ce271b5e37 ("powerpc/prom: convert PROM_BUG() to standard trap") added an EMIT_BUG_ENTRY for the trap after the branch to start_kernel(). The EMIT_BUG_ENTRY was for the address "0b", however the trap was not labeled with "0". Hence the address used for bug is in relative_toc() where the previous "0" label is. Label the trap as "0" so the correct address is used.
--- arch/powerpc/kernel/head_64.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/powerpc/kernel/head_64.S +1 -1
@@ -995,7 +995,7 @@ start_here_common: bl start_kernel /* Not reached */ - trap +0: trap EMIT_BUG_ENTRY 0b, __FILE__, __LINE__, 0 .previous
Signature · 1 line
2.17.1
Michael Ellerman
AppliedQuoted 6 lines · Jordan Niethe
Commit
63ce271b5e37("powerpc/prom: convertPROM_BUG()to standard trap") added anEMIT_BUG_ENTRYfor the trap after the branch tostart_kernel(). TheEMIT_BUG_ENTRYwas for the address "0b", however the trap was not labeled with "0". Hence the address used for bug is inrelative_toc()where the previous "0" label is. Label the trap as "0" so the correct address is used.
Applied to powerpc/next.
[1/1] powerpc/64: Fix an EMIT_BUG_ENTRY in head_64.S
https://git.kernel.org/powerpc/c/fe18a35e685c9bdabc8b11b3e19deb85a068b75d
cheers