powerpc/traps: merge unrecoverable_exception() and nonrecoverable_exception()
PPC32 uses nonrecoverable_exception() while PPC64 uses unrecoverable_exception(). Both functions are doing almost the same thing. This patch removes nonrecoverable_exception() Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
This commit is contained in:

committed by
Michael Ellerman

parent
b9ef7b4b86
commit
51423a9c9b
@@ -1547,14 +1547,6 @@ void StackOverflow(struct pt_regs *regs)
|
||||
panic("kernel stack overflow");
|
||||
}
|
||||
|
||||
void nonrecoverable_exception(struct pt_regs *regs)
|
||||
{
|
||||
printk(KERN_ERR "Non-recoverable exception at PC=%lx MSR=%lx\n",
|
||||
regs->nip, regs->msr);
|
||||
debugger(regs);
|
||||
die("nonrecoverable exception", regs, SIGKILL);
|
||||
}
|
||||
|
||||
void kernel_fp_unavailable_exception(struct pt_regs *regs)
|
||||
{
|
||||
enum ctx_state prev_state = exception_enter();
|
||||
@@ -2090,8 +2082,8 @@ void SPEFloatingPointRoundException(struct pt_regs *regs)
|
||||
*/
|
||||
void unrecoverable_exception(struct pt_regs *regs)
|
||||
{
|
||||
printk(KERN_EMERG "Unrecoverable exception %lx at %lx\n",
|
||||
regs->trap, regs->nip);
|
||||
pr_emerg("Unrecoverable exception %lx at %lx (msr=%lx)\n",
|
||||
regs->trap, regs->nip, regs->msr);
|
||||
die("Unrecoverable exception", regs, SIGABRT);
|
||||
}
|
||||
NOKPROBE_SYMBOL(unrecoverable_exception);
|
||||
|
Reference in New Issue
Block a user