]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
x86: add the "print code before the trapping instruction" feature to 64 bit
authorArjan van de Ven <arjan@linux.intel.com>
Wed, 30 Jan 2008 12:33:08 +0000 (13:33 +0100)
committerIngo Molnar <mingo@elte.hu>
Wed, 30 Jan 2008 12:33:08 +0000 (13:33 +0100)
commita25bd94964e87b1b93903a822fba5025d995d4da
tree67208bd1666760ac0d0d9c01c3be2a1b12f5aae3
parent6dab27784b2a97823b522e1cb88e40be40a93d45
x86: add the "print code before the trapping instruction" feature to 64 bit

The 32 bit x86 tree has a very useful feature that prints the Code: line
for the code even before the trapping instrution (and the start of the
trapping instruction is then denoted with a <>). Unfortunately, the 64 bit
x86 tree does not yet have this feature, making diagnosing backtraces harder
than needed.

This patch adds this feature in the same was as the 32 bit tree has
(including the same kernel boot parameter), and including a bugfix
to make the code use probe_kernel_address() rarther than a buggy (deadlocking)
__get_user.

Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Documentation/kernel-parameters.txt
arch/x86/kernel/traps_64.c