diff options
author | Michael Neuling <mikey@neuling.org> | 2008-01-18 15:50:30 +1100 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2008-01-25 22:52:50 +1100 |
commit | 496b010e1e70a9b4286fa34f19523f24a194f119 (patch) | |
tree | 82304fcb3342e1204fe2b2b69c0f396068ad409c /include/asm-sparc/pbm.h | |
parent | c3b75bd7bbf4a0438dc140033b80657995fd30ed (diff) | |
download | linux-496b010e1e70a9b4286fa34f19523f24a194f119.tar.gz linux-496b010e1e70a9b4286fa34f19523f24a194f119.tar.xz |
[POWERPC] kdump shutdown hook support
This adds hooks into the default_machine_crash_shutdown so drivers can
register a function to be run in the first kernel before we hand off
to the second kernel. This should only be used in exceptional
circumstances, like where the device can't be reset in the second
kernel alone (as is the case with eHEA). To emphasize this, the
number of handles allowed to be registered is currently #def to 1.
This uses the setjmp/longjmp code around the call out to the
registered hooks, so any bogus exceptions we encounter will hopefully
be recoverable.
Tested with bogus data and instruction exceptions.
Signed-off-by: Michael Neuling <mikey@neuling.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'include/asm-sparc/pbm.h')
0 files changed, 0 insertions, 0 deletions