Re: [PATCH] powerpc/8xx: add system_reset_exception
From: Scott Wood
Date: Tue Sep 06 2016 - 18:40:59 EST
On Mon, 2016-09-05 at 08:42 +0200, Christophe Leroy wrote:
> When the watchdog is in NMI mode, the system reset interrupt is
> generated when the watchdog counter expires.
>
> Signed-off-by: Christophe Leroy <christophe.leroy@xxxxxx>
> ---
> Âarch/powerpc/kernel/head_8xx.S | 2 +-
> Âarch/powerpc/kernel/traps.cÂÂÂÂ| 2 +-
> Â2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/arch/powerpc/kernel/head_8xx.S b/arch/powerpc/kernel/head_8xx.S
> index 43ddaae..f7b8007 100644
> --- a/arch/powerpc/kernel/head_8xx.S
> +++ b/arch/powerpc/kernel/head_8xx.S
> @@ -227,7 +227,7 @@ i##n:
> \
> Â ÂÂret_from_except)
> Â
> Â/* System reset */
> - EXCEPTION(0x100, Reset, unknown_exception, EXC_XFER_STD)
> + EXCEPTION(0x100, Reset, system_reset_exception, EXC_XFER_STD)
Does this do anything useful beyond what unknown_exception does? ÂDo you plan
to have a ppc_md.system_reset_exception callback?
-Scott