We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 85083ec commit 3617f03Copy full SHA for 3617f03
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