correct alignment

This commit is contained in:
Niko Matsakis 2011-11-10 12:32:06 -08:00
parent 85083ec51b
commit 3617f0377f

View file

@ -37,9 +37,10 @@ upcall_call_c_stack_shim:
#endif
pushl %ebp
movl %esp,%ebp // save esp
movl 8(%esp),%eax // eax = callee
movl 12(%esp),%esp // switch stack
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
pushl 12(%ebp) // push ptr to argument block
calll *%eax
movl %ebp,%esp // would like to use "leave" but it's slower
popl %ebp