powerpc/fsl_rio: move machine_check handler
Add support for machine_check support into machine_check_e500 and machine_check_e500mc. Signed-off-by: Shaohui Xie <b21989@freescale.com> Cc: Li Yang <leoli@freescale.com> Cc: Roy Zang <tie-fei.zang@freescale.com> Cc: Alexandre Bounine <alexandre.bounine@idt.com> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
This commit is contained in:
@@ -260,9 +260,7 @@ struct rio_priv {
|
||||
static void __iomem *rio_regs_win;
|
||||
|
||||
#ifdef CONFIG_E500
|
||||
static int (*saved_mcheck_exception)(struct pt_regs *regs);
|
||||
|
||||
static int fsl_rio_mcheck_exception(struct pt_regs *regs)
|
||||
int fsl_rio_mcheck_exception(struct pt_regs *regs)
|
||||
{
|
||||
const struct exception_table_entry *entry = NULL;
|
||||
unsigned long reason = mfspr(SPRN_MCSR);
|
||||
@@ -284,11 +282,9 @@ static int fsl_rio_mcheck_exception(struct pt_regs *regs)
|
||||
}
|
||||
}
|
||||
|
||||
if (saved_mcheck_exception)
|
||||
return saved_mcheck_exception(regs);
|
||||
else
|
||||
return cur_cpu_spec->machine_check(regs);
|
||||
return 0;
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(fsl_rio_mcheck_exception);
|
||||
#endif
|
||||
|
||||
/**
|
||||
@@ -1538,11 +1534,6 @@ int fsl_rio_setup(struct platform_device *dev)
|
||||
fsl_rio_doorbell_init(port);
|
||||
fsl_rio_port_write_init(port);
|
||||
|
||||
#ifdef CONFIG_E500
|
||||
saved_mcheck_exception = ppc_md.machine_check_exception;
|
||||
ppc_md.machine_check_exception = fsl_rio_mcheck_exception;
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
err:
|
||||
iounmap(priv->regs_win);
|
||||
|
Reference in New Issue
Block a user