summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include
diff options
context:
space:
mode:
authorAnton Blanchard <anton@samba.org>2014-03-10 10:52:17 +1100
committerAnton Blanchard <anton@samba.org>2014-04-23 10:05:25 +1000
commit6403105bfda4d6934b39aeb85ff818b185b42de8 (patch)
tree6f014b53f9fe560c48d90e137a38b6176683bc36 /arch/powerpc/include
parentc2e31bdc120d992a90b75d94c7fa403fea362e43 (diff)
downloadblackbird-op-linux-6403105bfda4d6934b39aeb85ff818b185b42de8.tar.gz
blackbird-op-linux-6403105bfda4d6934b39aeb85ff818b185b42de8.zip
powerpc/tm: Fix GOT save offset for ABIv2
The r2 TOC/GOT save offset is 40 on ABIv1 and 24 on ABIv2. Signed-off-by: Anton Blanchard <anton@samba.org>
Diffstat (limited to 'arch/powerpc/include')
-rw-r--r--arch/powerpc/include/asm/ppc_asm.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/ppc_asm.h b/arch/powerpc/include/asm/ppc_asm.h
index 3185d11b6691..2cc2511ff076 100644
--- a/arch/powerpc/include/asm/ppc_asm.h
+++ b/arch/powerpc/include/asm/ppc_asm.h
@@ -190,8 +190,10 @@ END_FW_FTR_SECTION_IFSET(FW_FEATURE_SPLPAR)
#define STK_REG(i) __STK_REG(__REG_##i)
#if defined(_CALL_ELF) && _CALL_ELF == 2
+#define STK_GOT 24
#define __STK_PARAM(i) (32 + ((i)-3)*8)
#else
+#define STK_GOT 40
#define __STK_PARAM(i) (48 + ((i)-3)*8)
#endif
#define STK_PARAM(i) __STK_PARAM(__REG_##i)
OpenPOWER on IntegriCloud