mirror of
https://github.com/corda/corda.git
synced 2025-01-06 05:04:20 +00:00
Update x86.S
GCC now assumes by default that the stack is aligned to a 16-byte boundary in Linux x86, so let's do our part to honour that. :) Otherwise native code that depends on the stack to be aligned to 16 bytes would seg fault (like SSE). https://groups.google.com/forum/#!topic/avian/SyCl-Jfw2U8
This commit is contained in:
parent
c09f329728
commit
a6440375ca
@ -450,10 +450,10 @@ GLOBAL(vmNativeCall):
|
|||||||
|
|
||||||
subl %ecx,%esp
|
subl %ecx,%esp
|
||||||
|
|
||||||
# ifdef __APPLE__
|
//# ifdef __APPLE__
|
||||||
// align to a 16 byte boundary on Darwin
|
// align to a 16 byte boundary
|
||||||
andl $0xFFFFFFF0,%esp
|
andl $0xFFFFFFF0,%esp
|
||||||
# endif
|
//# endif
|
||||||
|
|
||||||
// copy arguments into place
|
// copy arguments into place
|
||||||
movl $0,%ecx
|
movl $0,%ecx
|
||||||
|
Loading…
Reference in New Issue
Block a user