]> git.baikalelectronics.ru Git - kernel.git/commit
Blackfin: improve double fault debug handling
authorGraf Yang <graf.yang@analog.com>
Wed, 22 Jul 2009 11:56:24 +0000 (11:56 +0000)
committerMike Frysinger <vapier@gentoo.org>
Thu, 17 Sep 2009 01:31:57 +0000 (21:31 -0400)
commitca7432ce39b87c8d197649f78784007f832c30d1
tree0963b346d63cc7ee44e3e769cc8435d224e17a87
parent67e03f70d5ffd25c1c9fb7d35c2219fc96704451
Blackfin: improve double fault debug handling

Since the hardware only provides reporting for the last exception handled,
and the values are valid only when executing the exception handler, we
need to save the context for reporting at a later point.  While we do this
for one exception, it doesn't work properly when handling a second one as
the original exception is clobbered by the double fault.  So when double
fault debugging is enabled, create a dedicated shadow of these values and
save/restore out of there.  Now the crash report properly displays the
first exception as well as the second one.

Signed-off-by: Graf Yang <graf.yang@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
arch/blackfin/include/asm/pda.h
arch/blackfin/kernel/asm-offsets.c
arch/blackfin/kernel/traps.c
arch/blackfin/mach-bf561/secondary.S
arch/blackfin/mach-common/entry.S
arch/blackfin/mach-common/head.S