[PATCH 8/9] powerpc/ps3: Add lv1_panic
Geoff Levand
geoff at infradead.org
Sat Mar 28 07:26:23 AEDT 2020
lv1_panic takes a single parameter, 0=halt, 1=reboot, and it will
never return.
Signed-off-by: Geoff Levand <geoff at 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
More information about the Linuxppc-dev
mailing list