From b1cc99844f6015b71cc116da719394d84a47fbcd Mon Sep 17 00:00:00 2001 From: Dmitry Safonov Date: Tue, 28 Jun 2016 22:24:17 +0300 Subject: [PATCH] x86/call32: reserve space for saving 64-bit sp on 32-bit stack I prefer this to be done in callee, than in caller for simplicity. Cc: Cyrill Gorcunov Signed-off-by: Dmitry Safonov Signed-off-by: Pavel Emelyanov Signed-off-by: Andrei Vagin --- criu/arch/x86/call32.S | 2 ++ 1 file changed, 2 insertions(+) diff --git a/criu/arch/x86/call32.S b/criu/arch/x86/call32.S index f2e118f26..bc724d6c5 100644 --- a/criu/arch/x86/call32.S +++ b/criu/arch/x86/call32.S @@ -34,6 +34,7 @@ call32_from_64: pushfq // Switch stacks + sub $8, %rdi mov %rsp,(%rdi) mov %rdi,%rsp @@ -53,6 +54,7 @@ call32_from_64: 1: // Restore the stack mov (%rsp),%rsp + add $8, %rdi // Restore registers popfq