aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/lib
diff options
context:
space:
mode:
authorNicolas Pitre <nico@cam.org>2006-01-14 11:18:09 -0500
committerRussell King <rmk+kernel@arm.linux.org.uk>2006-01-14 11:18:09 -0500
commit499b2ea11ff00c624d63af23516404fa2156639a (patch)
tree7c63e058acd8f6c6a59b08cc64febf9def142852 /arch/arm/lib
parent2dede2d8e925f4c2cb4e136b14df127685e15dd3 (diff)
[ARM] 3103/1: ARM EABI: stack pointer must be 64-bit aligned (part 2)
Patch from Nicolas Pitre We must make sure that assembly code that modifies the stack pointer before calling a C function does it so it remains 64-bit aligned. Signed-off-by: Nicolas Pitre <nico@cam.org> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/lib')
-rw-r--r--arch/arm/lib/lib1funcs.S4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/lib/lib1funcs.S b/arch/arm/lib/lib1funcs.S
index 59026029d017..4964e5bafa0f 100644
--- a/arch/arm/lib/lib1funcs.S
+++ b/arch/arm/lib/lib1funcs.S
@@ -306,9 +306,9 @@ ENTRY(__modsi3)
306 306
307Ldiv0: 307Ldiv0:
308 308
309 str lr, [sp, #-4]! 309 str lr, [sp, #-8]!
310 bl __div0 310 bl __div0
311 mov r0, #0 @ About as wrong as it could be. 311 mov r0, #0 @ About as wrong as it could be.
312 ldr pc, [sp], #4 312 ldr pc, [sp], #8
313 313
314 314