diff --git a/src/rt/arch/i386/morestack.S b/src/rt/arch/i386/morestack.S index 1b2768208056..a95e183a1d12 100644 --- a/src/rt/arch/i386/morestack.S +++ b/src/rt/arch/i386/morestack.S @@ -207,12 +207,14 @@ MORESTACK: subl $12, %esp // Save the return value of the function we allocated space for + movl %edx, 4(%esp) movl %eax, (%esp) call UPCALL_DEL_STACK // And restore it movl (%esp), %eax + movl 4(%esp), %edx addl $12,%esp