mirror of
https://github.com/corda/corda.git
synced 2025-02-27 11:36:42 +00:00
align SP to 16 byte boundary on Darwin in cdecl.S
This commit is contained in:
parent
1d68f87f75
commit
54cabf9240
15
src/cdecl.S
15
src/cdecl.S
@ -1,9 +1,14 @@
|
||||
#include "types.h"
|
||||
|
||||
.text
|
||||
.globl cdeclCall
|
||||
|
||||
#ifdef __APPLE__
|
||||
.globl _cdeclCall
|
||||
_cdeclCall:
|
||||
#else
|
||||
.globl cdeclCall
|
||||
cdeclCall:
|
||||
#endif
|
||||
pushl %ebp
|
||||
movl %esp,%ebp
|
||||
|
||||
@ -14,6 +19,14 @@ cdeclCall:
|
||||
|
||||
// reserve space for arguments
|
||||
movl 16(%ebp),%ecx
|
||||
|
||||
#ifdef __APPLE__
|
||||
// align to a 16 byte boundary on Darwin
|
||||
addl $15,%ecx
|
||||
andl $0xFFFFFFF0,%ecx
|
||||
addl $8,%ecx
|
||||
#endif
|
||||
|
||||
subl %ecx,%esp
|
||||
|
||||
// copy arguments into place
|
||||
|
Loading…
x
Reference in New Issue
Block a user