]> git.kernelconcepts.de Git - karo-tx-linux.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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sun, 18 Jan 2009 18:44:02 +0000 (10:44 -0800)
commit 7aed55d1085f71241284a30af0300feea48c36db upstream.

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>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
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 */