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 26cfdc1..0e275d4 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 */