powerpc/prom: convert PROM_BUG() to standard trap
authorChristophe Leroy <christophe.leroy@c-s.fr>
Mon, 26 Aug 2019 11:10:23 +0000 (11:10 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 28 Aug 2019 01:31:18 +0000 (11:31 +1000)
commit63ce271b5e377deaddace4bac6dafb6e79d2bee4
treeda81cde558b7cd6a5b2d4fd39a37b0eb6f8b122b
parent405efc5980f2590a9520dc66cfe295456b8c9818
powerpc/prom: convert PROM_BUG() to standard trap

Prior to commit 1bd98d7fbaf5 ("ppc64: Update BUG handling based on
ppc32"), BUG() family was using BUG_ILLEGAL_INSTRUCTION which
was an invalid instruction opcode to trap into program check
exception.

That commit converted them to using standard trap instructions,
but prom/prom_init and their PROM_BUG() macro were left over.
head_64.S and exception-64s.S were left aside as well.

Convert them to using the standard BUG infrastructure.

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/cdaf4bbbb64c288a077845846f04b12683f8875a.1566817807.git.christophe.leroy@c-s.fr
arch/powerpc/include/asm/bug.h
arch/powerpc/kernel/exceptions-64s.S
arch/powerpc/kernel/head_64.S
arch/powerpc/kernel/prom_init.c