]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] i386: show_registers(): try harder to print failing code
authorChuck Ebbert <76306.1226@compuserve.com>
Tue, 26 Sep 2006 06:32:19 +0000 (23:32 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 26 Sep 2006 15:48:55 +0000 (08:48 -0700)
commit13f57ea1947d188729106a6c61950544bf98a537
treec86702f5fdcd8a75ed35c448980d50ae43cd804a
parent4de51472d28d84565aa6e05fffb1dc1f8c7a28f5
[PATCH] i386: show_registers(): try harder to print failing code

show_registers() tries to dump failing code starting 43 bytes before the
offending instruction, but this address can be bad, for example in a device
driver where the failing instruction is less than 43 bytes from the start
of the driver's code.  When that happens, try to dump code starting at the
failing instruction instead of printing no code at all.

Signed-off-by: Chuck Ebbert <76306.1226@compuserve.com>
Cc: Andi Kleen <ak@muc.de>
Cc: Keith Owens <kaos@ocs.com.au>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/i386/kernel/traps.c