]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
powerpc/8xx: add system_reset_exception
authorChristophe Leroy <christophe.leroy@c-s.fr>
Mon, 5 Sep 2016 06:42:31 +0000 (08:42 +0200)
committerScott Wood <oss@buserror.net>
Sun, 25 Sep 2016 07:38:54 +0000 (02:38 -0500)
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@c-s.fr>
Signed-off-by: Scott Wood <oss@buserror.net>
arch/powerpc/kernel/head_8xx.S
arch/powerpc/kernel/traps.c

index 3a185c51ce8f657d47709f12ffabb5e6480eff7f..f559f217cd87ea9e84e21476de4fae845a9a38f4 100644 (file)
@@ -226,7 +226,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)
 
 /* Machine check */
        . = 0x200
index 68f8b5b0d8858731e7ed6587e46cc723acdc97b9..137b1371cce8d172bf157659d845705dfb1b3aaa 100644 (file)
@@ -273,7 +273,6 @@ void _exception(int signr, struct pt_regs *regs, int code, unsigned long addr)
        force_sig_info(signr, &info, current);
 }
 
-#ifdef CONFIG_PPC64
 void system_reset_exception(struct pt_regs *regs)
 {
        /* See if any machine dependent calls */
@@ -291,6 +290,7 @@ void system_reset_exception(struct pt_regs *regs)
        /* What should we do here? We could issue a shutdown or hard reset. */
 }
 
+#ifdef CONFIG_PPC64
 /*
  * This function is called in real mode. Strictly no printk's please.
  *