diff options
author | Anton Blanchard <anton@samba.org> | 2014-02-04 00:09:02 -0500 |
---|---|---|
committer | Anton Blanchard <anton@samba.org> | 2014-04-22 20:05:23 -0400 |
commit | b37c10d128a2fa3256d4e67c184177270eac4b86 (patch) | |
tree | a71357c1497ca0223ff05b7af59ec8e2c4b9c3e0 /arch/powerpc/include | |
parent | 7cedd6014bfe353d4b552ed8d54d63f6e06e26ba (diff) |
powerpc: Fix ABIv2 issues with stack offsets in assembly code
Fix STK_PARAM and use it instead of hardcoding ABIv1 offsets.
Signed-off-by: Anton Blanchard <anton@samba.org>
Diffstat (limited to 'arch/powerpc/include')
-rw-r--r-- | arch/powerpc/include/asm/ppc_asm.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/ppc_asm.h b/arch/powerpc/include/asm/ppc_asm.h index 5394d41a7140..3185d11b6691 100644 --- a/arch/powerpc/include/asm/ppc_asm.h +++ b/arch/powerpc/include/asm/ppc_asm.h | |||
@@ -189,7 +189,11 @@ END_FW_FTR_SECTION_IFSET(FW_FEATURE_SPLPAR) | |||
189 | #define __STK_REG(i) (112 + ((i)-14)*8) | 189 | #define __STK_REG(i) (112 + ((i)-14)*8) |
190 | #define STK_REG(i) __STK_REG(__REG_##i) | 190 | #define STK_REG(i) __STK_REG(__REG_##i) |
191 | 191 | ||
192 | #if defined(_CALL_ELF) && _CALL_ELF == 2 | ||
193 | #define __STK_PARAM(i) (32 + ((i)-3)*8) | ||
194 | #else | ||
192 | #define __STK_PARAM(i) (48 + ((i)-3)*8) | 195 | #define __STK_PARAM(i) (48 + ((i)-3)*8) |
196 | #endif | ||
193 | #define STK_PARAM(i) __STK_PARAM(__REG_##i) | 197 | #define STK_PARAM(i) __STK_PARAM(__REG_##i) |
194 | 198 | ||
195 | #if defined(_CALL_ELF) && _CALL_ELF == 2 | 199 | #if defined(_CALL_ELF) && _CALL_ELF == 2 |