Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 26fd5e08 authored by Jeremy Fitzhardinge's avatar Jeremy Fitzhardinge Committed by Andi Kleen
Browse files

[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: default avatarJeremy Fitzhardinge <jeremy@xensource.com>
Signed-off-by: default avatarAndi Kleen <ak@suse.de>
Cc: Andi Kleen <ak@muc.de>
Cc: Andrew Morton <akpm@osdl.org>
parent 7a71cef7
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -317,7 +317,7 @@ is386: movl $2,%ecx # set MP
	movl %eax,%gs
	movl %eax,%gs
	lldt %ax
	lldt %ax
	cld			# gcc2 wants the direction flag cleared at all times
	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
#ifdef CONFIG_SMP
	movb ready, %cl
	movb ready, %cl
	movb $1, ready
	movb $1, ready