From: Jiri Slaby Date: Sat, 3 Jan 2009 23:27:09 +0000 (+0100) Subject: x86: fix RIP printout in early_idt_handler X-Git-Tag: v2.6.29-rc1~4^2~4 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=7aed55d1085f71241284a30af0300feea48c36db;p=linux-2.6-omap-h63xx.git x86: fix RIP printout in early_idt_handler 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 Cc: Signed-off-by: Ingo Molnar --- diff --git a/arch/x86/kernel/head_64.S b/arch/x86/kernel/head_64.S index 26cfdc1d7c7..0e275d49556 100644 --- a/arch/x86/kernel/head_64.S +++ b/arch/x86/kernel/head_64.S @@ -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 */