[PATCH 05/11] powerpc/32: add START_EXCEPTION() in head_32.h

From: Christophe Leroy
Date: Mon Jan 28 2019 - 06:11:58 EST


Add START_EXCEPTION() in head_32.h for preparing the use
of head_32.h in head_40x.S

Signed-off-by: Christophe Leroy <christophe.leroy@xxxxxx>
---
arch/powerpc/kernel/head_32.h | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/arch/powerpc/kernel/head_32.h b/arch/powerpc/kernel/head_32.h
index 643dd8d34aac..f77f13142410 100644
--- a/arch/powerpc/kernel/head_32.h
+++ b/arch/powerpc/kernel/head_32.h
@@ -72,10 +72,13 @@
/*
* Exception vectors.
*/
-#define EXCEPTION(n, label, hdlr, xfer) \
+#define START_EXCEPTION(n, label) \
. = n; \
DO_KVM n; \
-label: \
+label:
+
+#define EXCEPTION(n, label, hdlr, xfer) \
+ START_EXCEPTION(n, label) \
EXCEPTION_PROLOG; \
addi r3,r1,STACK_FRAME_OVERHEAD; \
xfer(n, hdlr)
--
2.13.3