summaryrefslogtreecommitdiff
path: root/arch/powerpc/include/asm/exception-64s.h
diff options
context:
space:
mode:
authorNicholas Piggin <npiggin@gmail.com>2017-05-21 23:15:50 +1000
committerMichael Ellerman <mpe@ellerman.id.au>2017-06-20 22:22:02 +1000
commit8568f1e02624e6ce34644369e6ca137d10e32a88 (patch)
treedf3b7e6166e771f022d1384f01a2701d4ec69dcd /arch/powerpc/include/asm/exception-64s.h
parent635942ae53cc5d4049c2c4a5bd2ad819e3a47ee5 (diff)
powerpc/64s/paca: EX_CTR is not used with RELOCATABLE=n, remove it
Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/include/asm/exception-64s.h')
-rw-r--r--arch/powerpc/include/asm/exception-64s.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/powerpc/include/asm/exception-64s.h b/arch/powerpc/include/asm/exception-64s.h
index f42a49a274a6..9a318973af05 100644
--- a/arch/powerpc/include/asm/exception-64s.h
+++ b/arch/powerpc/include/asm/exception-64s.h
@@ -47,9 +47,12 @@
#define EX_CCR 52
#define EX_CFAR 56
#define EX_PPR 64
+#if defined(CONFIG_RELOCATABLE)
#define EX_CTR 72
-
#define EX_SIZE 10 /* size in u64 units */
+#else
+#define EX_SIZE 9 /* size in u64 units */
+#endif
/*
* EX_LR is only used in EXSLB and where it does not overlap with EX_DAR