Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost
[cris-mirror.git] / arch / powerpc / platforms / 4xx / machine_check.c
blobaa039dfaf82fa4d0a4bbbaaa4767cb636e082870
1 /*
2 * This program is free software; you can redistribute it and/or
3 * modify it under the terms of the GNU General Public License
4 * as published by the Free Software Foundation; either version
5 * 2 of the License, or (at your option) any later version.
6 */
8 #include <linux/kernel.h>
9 #include <linux/printk.h>
10 #include <linux/ptrace.h>
12 #include <asm/reg.h>
14 int machine_check_4xx(struct pt_regs *regs)
16 unsigned long reason = regs->dsisr;
18 if (reason & ESR_IMCP) {
19 printk("Instruction");
20 mtspr(SPRN_ESR, reason & ~ESR_IMCP);
21 } else
22 printk("Data");
23 printk(" machine check in kernel mode.\n");
25 return 0;