From 461a79a24702f262fa9116ed769315b25f064cbf Mon Sep 17 00:00:00 2001 From: Niko Matsakis Date: Sat, 15 Jun 2013 16:18:39 -0400 Subject: [PATCH] Partial fix for #7158: Save EDX in morestack on x86-32 --- src/rt/arch/i386/morestack.S | 2 ++ 1 file changed, 2 insertions(+) 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