Page MenuHomeFreeBSD

D62359.1796389170.diff
No OneTemporary

Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None

D62359.1796389170.diff

diff --git a/sys/powerpc/aim/aim_machdep.c b/sys/powerpc/aim/aim_machdep.c
--- a/sys/powerpc/aim/aim_machdep.c
+++ b/sys/powerpc/aim/aim_machdep.c
@@ -598,8 +598,19 @@
}
/* TODO: Add other machine check recovery procedures. */
} else {
- if ((frame->srr1 & SRR1_MCHK_IFETCH_M) == SRR1_MCHK_IFETCH_SLBMH)
+ switch (frame->srr1 & SRR1_MCHK_IFETCH_M) {
+ case SRR1_MCHK_IFETCH_SLBMH:
return (0);
+ case SRR1_MCHK_IFETCH_ERATMH:
+ case SRR1_MCHK_IFETCH_TLBMH:
+ /*
+ * Recoverable like their data side counterparts
+ * above: drop the stale translations and retry
+ * the fetch.
+ */
+ pmap_tlbie_all();
+ return (0);
+ }
}
#endif
*ucode = BUS_OBJERR;
diff --git a/sys/powerpc/include/spr.h b/sys/powerpc/include/spr.h
--- a/sys/powerpc/include/spr.h
+++ b/sys/powerpc/include/spr.h
@@ -128,6 +128,8 @@
#define SRR1_MCHK_DATA 0x00200000 /* Machine check data in DSISR */
#define SRR1_MCHK_IFETCH_M 0x081c0000 /* Machine check instr fetch mask */
#define SRR1_MCHK_IFETCH_SLBMH 0x000c0000 /* SLB multihit */
+#define SRR1_MCHK_IFETCH_ERATMH 0x00100000 /* ERAT multihit */
+#define SRR1_MCHK_IFETCH_TLBMH 0x00140000 /* TLB multihit */
#define SPR_CFAR 0x01c /* Come From Address Register */
#define SPR_AMR 0x01d /* Authority Mask Register */

File Metadata

Mime Type
text/plain
Expires
Fri, Dec 4, 12:59 PM (18 h, 9 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
42207882
Default Alt Text
D62359.1796389170.diff (1 KB)

Event Timeline