Skip to content

Commit 461a79a

Browse files
committed
Partial fix for #7158: Save EDX in morestack on x86-32
1 parent 0d7f8f7 commit 461a79a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/rt/arch/i386/morestack.S

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,12 +207,14 @@ MORESTACK:
207207
subl $12, %esp
208208

209209
// Save the return value of the function we allocated space for
210+
movl %edx, 4(%esp)
210211
movl %eax, (%esp)
211212

212213
call UPCALL_DEL_STACK
213214

214215
// And restore it
215216
movl (%esp), %eax
217+
movl 4(%esp), %edx
216218

217219
addl $12,%esp
218220

0 commit comments

Comments
 (0)