summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/purgatory
diff options
context:
space:
mode:
authorChristophe Leroy2018-07-05 18:24:57 +0200
committerMichael Ellerman2018-07-30 14:48:16 +0200
commitec0c464cdbf38bf6ddabec8bfa595bd421cab203 (patch)
treeb9e8e5c9b489fff773b505294f8c25e1d4dfdacd /arch/powerpc/purgatory
parentpowerpc/405: move PPC405_ERR77 in asm-405.h (diff)
downloadkernel-qcow2-linux-ec0c464cdbf38bf6ddabec8bfa595bd421cab203.tar.gz
kernel-qcow2-linux-ec0c464cdbf38bf6ddabec8bfa595bd421cab203.tar.xz
kernel-qcow2-linux-ec0c464cdbf38bf6ddabec8bfa595bd421cab203.zip
powerpc: move ASM_CONST and stringify_in_c() into asm-const.h
This patch moves ASM_CONST() and stringify_in_c() into dedicated asm-const.h, then cleans all related inclusions. Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr> [mpe: asm-compat.h should include asm-const.h] Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/purgatory')
-rw-r--r--arch/powerpc/purgatory/trampoline.S10
1 files changed, 1 insertions, 9 deletions
diff --git a/arch/powerpc/purgatory/trampoline.S b/arch/powerpc/purgatory/trampoline.S
index 4aad9dd10ace..1e1129553fd7 100644
--- a/arch/powerpc/purgatory/trampoline.S
+++ b/arch/powerpc/purgatory/trampoline.S
@@ -12,15 +12,7 @@
* Software Foundation (version 2 of the License).
*/
-#if defined(__LITTLE_ENDIAN__)
-#define STWX_BE stwbrx
-#define LWZX_BE lwbrx
-#elif defined(__BIG_ENDIAN__)
-#define STWX_BE stwx
-#define LWZX_BE lwzx
-#else
-#error no endianness defined!
-#endif
+#include <asm/asm-compat.h>
.machine ppc64
.balign 256