This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
[mep] stack alignment in syscalls.S
- From: DJ Delorie <dj at redhat dot com>
- To: newlib at sourceware dot org
- Date: Tue, 14 Jul 2009 16:15:40 -0400
- Subject: [mep] stack alignment in syscalls.S
Committed.
* mep/syscalls.S (sysret): Maintain 16-byte stack alignment.
Index: mep/syscalls.S
===================================================================
RCS file: /cvs/src/src/libgloss/mep/syscalls.S,v
retrieving revision 1.1
diff -p -U3 -r1.1 syscalls.S
--- mep/syscalls.S 8 Feb 2007 21:22:05 -0000 1.1
+++ mep/syscalls.S 14 Jul 2009 20:14:52 -0000
@@ -51,7 +51,7 @@ S(link)
S(_Sid_config)
sysret:
- add3 $sp, $sp, -12
+ add3 $sp, $sp, -16
sw $0, 0($sp)
sw $1, 4($sp)
ldc $2, $lp
@@ -62,5 +62,5 @@ sysret:
lw $0, 0($sp)
lw $2, 8($sp)
stc $2, $lp
- add3 $sp, $sp, 12
+ add3 $sp, $sp, 16
ret