x86: Make sure we also print a Code: line for show_regs()
authorArjan van de Ven <arjan@linux.intel.com>
Tue, 3 Nov 2009 00:59:15 +0000 (16:59 -0800)
committerIngo Molnar <mingo@elte.hu>
Tue, 3 Nov 2009 15:50:22 +0000 (16:50 +0100)
commita489ca355efaf9efa4990b0f8f30ab650a206273
tree15318e174eadd72811d2053f5548f83e55f362d9
parent1836d95928a0f41ada0cbb2a6c4e46b027db9491
x86: Make sure we also print a Code: line for show_regs()

show_regs() is called as a mini BUG() equivalent in some places,
specifically for the "scheduling while atomic" case.

Unfortunately right now it does not print a Code: line unlike
a real bug/oops.

This patch changes the x86 implementation of show_regs() so that
it calls the same function as oopses do to print the registers
as well as the Code: line.

Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
LKML-Reference: <20091102165915.4a980fc0@infradead.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/process_32.c
arch/x86/kernel/process_64.c