Skip to content

Commit 3279075

Browse files
committed
---
yaml --- r: 6298 b: refs/heads/master c: 3617f03 h: refs/heads/master v: v3
1 parent d601d78 commit 3279075

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

[refs]

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 85083ec51b57ed5a44ce34c8b3610ca66dff7a68
2+
refs/heads/master: 3617f0377fb797ada3a20addb9e9a24e4b8a4f43

trunk/src/rt/arch/i386/ccall.S

+4-3
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,10 @@ upcall_call_c_stack_shim:
3737
#endif
3838
pushl %ebp
3939
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
40+
movl 8(%ebp),%eax // eax = callee
41+
movl 12(%ebp),%esp // switch stack
42+
subl $12,%esp // maintain 16-byte alignment
43+
pushl 12(%ebp) // push ptr to argument block
4344
calll *%eax
4445
movl %ebp,%esp // would like to use "leave" but it's slower
4546
popl %ebp

0 commit comments

Comments
 (0)