From a44f51203c43bb4306a225506075740cdacaccfa Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Tue, 19 Apr 2011 02:27:45 +0200 Subject: Close call stack on continuation * i386/i386/locore.S (call_continuation): Push dummy return address instead of letting the callee get a random one. --- i386/i386/locore.S | 1 + 1 file changed, 1 insertion(+) diff --git a/i386/i386/locore.S b/i386/i386/locore.S index 8571611..379b219 100644 --- a/i386/i386/locore.S +++ b/i386/i386/locore.S @@ -599,6 +599,7 @@ ENTRY(call_continuation) addl $(-3-IKS_SIZE),%ecx movl %ecx,%esp /* pop the stack */ xorl %ebp,%ebp /* zero frame pointer */ + pushl $0 /* Dummy return address */ jmp *%eax /* goto continuation */ -- cgit v1.2.3