lv1_panic takes a single parameter, 0=halt, 1=reboot, and it will never return.
Signed-off-by: Geoff Levand <ge...@infradead.org> --- arch/powerpc/boot/ppc_asm.h | 6 ++++++ arch/powerpc/include/asm/ppc_asm.h | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/arch/powerpc/boot/ppc_asm.h b/arch/powerpc/boot/ppc_asm.h index 192b97523b05..cf758bc63846 100644 --- a/arch/powerpc/boot/ppc_asm.h +++ b/arch/powerpc/boot/ppc_asm.h @@ -8,6 +8,12 @@ * Copyright (C) 1995-1999 Gary Thomas, Paul Mackerras, Cort Dougan. */ +.macro lv1_panic + li r3, 0 + li r11, 255 + .long 0x44000022 +.endm + /* Condition Register Bit Fields */ #define cr0 0 diff --git a/arch/powerpc/include/asm/ppc_asm.h b/arch/powerpc/include/asm/ppc_asm.h index 6b03dff61a05..e76a6a4020ea 100644 --- a/arch/powerpc/include/asm/ppc_asm.h +++ b/arch/powerpc/include/asm/ppc_asm.h @@ -13,6 +13,12 @@ #ifdef __ASSEMBLY__ +.macro lv1_panic + li r3, 0 + li r11, 255 + .long 0x44000022 +.endm + #define SZL (BITS_PER_LONG/8) /* -- 2.20.1