Commit 26fd5e084e470dbe8edc6f726fc918e89b9f988c

Authored by Jeremy Fitzhardinge
Committed by Andi Kleen
1 parent 7a71cef780

[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 <jeremy@xensource.com>
Signed-off-by: Andi Kleen <ak@suse.de>
Cc: Andi Kleen <ak@muc.de>
Cc: Andrew Morton <akpm@osdl.org>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

arch/i386/kernel/head.S
... ... @@ -317,7 +317,7 @@
317 317 movl %eax,%gs
318 318 lldt %ax
319 319 cld # gcc2 wants the direction flag cleared at all times
320   - pushl %eax # fake return address
  320 + pushl $0 # fake return address for unwinder
321 321 #ifdef CONFIG_SMP
322 322 movb ready, %cl
323 323 movb $1, ready