We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d601d78 commit 3279075Copy full SHA for 3279075
[refs]
@@ -1,2 +1,2 @@
1
---
2
-refs/heads/master: 85083ec51b57ed5a44ce34c8b3610ca66dff7a68
+refs/heads/master: 3617f0377fb797ada3a20addb9e9a24e4b8a4f43
trunk/src/rt/arch/i386/ccall.S
@@ -37,9 +37,10 @@ upcall_call_c_stack_shim:
37
#endif
38
pushl %ebp
39
movl %esp,%ebp // save esp
40
- movl 8(%esp),%eax // eax = callee
41
- movl 12(%esp),%esp // switch stack
42
- pushl %esp // push ptr to new arguments
+ movl 8(%ebp),%eax // eax = callee
+ movl 12(%ebp),%esp // switch stack
+ subl $12,%esp // maintain 16-byte alignment
43
+ pushl 12(%ebp) // push ptr to argument block
44
calll *%eax
45
movl %ebp,%esp // would like to use "leave" but it's slower
46
popl %ebp
0 commit comments