]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
x86: fix RIP printout in early_idt_handler
authorJiri Slaby <jirislaby@gmail.com>
Sat, 3 Jan 2009 23:27:09 +0000 (00:27 +0100)
committerIngo Molnar <mingo@elte.hu>
Sun, 4 Jan 2009 09:20:29 +0000 (10:20 +0100)
Impact: fix debug/crash printout

Since errorcode is popped out, RIP is on the top of the stack.
Use real RIP value instead of wrong CS.

Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Cc: <stable@kernel.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/head_64.S

index 26cfdc1d7c7fd9119e2c47c22af144e6f300f7eb..0e275d495563fa33d9fddce555a82a581fa8cff0 100644 (file)
@@ -305,7 +305,7 @@ ENTRY(early_idt_handler)
        call dump_stack
 #ifdef CONFIG_KALLSYMS 
        leaq early_idt_ripmsg(%rip),%rdi
-       movq 8(%rsp),%rsi       # get rip again
+       movq 0(%rsp),%rsi       # get rip again
        call __print_symbol
 #endif
 #endif /* EARLY_PRINTK */