powerpc/8xx: add system_reset_exception
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>
This commit is contained in:
parent
63f1de8820
commit
f307939fb2
|
@ -226,7 +226,7 @@ i##n: \
|
||||||
ret_from_except)
|
ret_from_except)
|
||||||
|
|
||||||
/* System reset */
|
/* System reset */
|
||||||
EXCEPTION(0x100, Reset, unknown_exception, EXC_XFER_STD)
|
EXCEPTION(0x100, Reset, system_reset_exception, EXC_XFER_STD)
|
||||||
|
|
||||||
/* Machine check */
|
/* Machine check */
|
||||||
. = 0x200
|
. = 0x200
|
||||||
|
|
|
@ -273,7 +273,6 @@ void _exception(int signr, struct pt_regs *regs, int code, unsigned long addr)
|
||||||
force_sig_info(signr, &info, current);
|
force_sig_info(signr, &info, current);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CONFIG_PPC64
|
|
||||||
void system_reset_exception(struct pt_regs *regs)
|
void system_reset_exception(struct pt_regs *regs)
|
||||||
{
|
{
|
||||||
/* See if any machine dependent calls */
|
/* 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. */
|
/* 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.
|
* This function is called in real mode. Strictly no printk's please.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue