From: Jeremy Fitzhardinge Date: Sat, 21 Oct 2006 16:37:02 +0000 (+0200) Subject: [PATCH] i386: Fix fake return address X-Git-Tag: v2.6.19-rc3~15^2~8 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=26fd5e084e470dbe8edc6f726fc918e89b9f988c;p=linux-2.6 [PATCH] i386: Fix fake return address The fake return address was being set to __KERNEL_PDA, rather than 0. Push it earlier while %eax still equals 0. Signed-off-by: Jeremy Fitzhardinge Signed-off-by: Andi Kleen Cc: Andi Kleen Cc: Andrew Morton --- diff --git a/arch/i386/kernel/head.S b/arch/i386/kernel/head.S index be9d883c62..ca31f18d27 100644 --- a/arch/i386/kernel/head.S +++ b/arch/i386/kernel/head.S @@ -317,7 +317,7 @@ is386: movl $2,%ecx # set MP movl %eax,%gs lldt %ax cld # gcc2 wants the direction flag cleared at all times - pushl %eax # fake return address + pushl $0 # fake return address for unwinder #ifdef CONFIG_SMP movb ready, %cl movb $1, ready