From: Michael Neuling Date: Fri, 18 Jan 2008 04:50:30 +0000 (+1100) Subject: [POWERPC] kdump shutdown hook support X-Git-Tag: v2.6.25-rc1~1131^2~92 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=496b010e1e70a9b4286fa34f19523f24a194f119;p=pandora-kernel.git [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 Signed-off-by: Paul Mackerras --- Reading git-diff-tree failed