Page MenuHomeFreeBSD

D23244.id.diff
No OneTemporary

D23244.id.diff

Index: head/sys/powerpc/booke/pmap.c
===================================================================
--- head/sys/powerpc/booke/pmap.c
+++ head/sys/powerpc/booke/pmap.c
@@ -4028,7 +4028,22 @@
sz >>= 2;
} while (va % sz != 0);
}
- /* Now align from there to VA */
+#ifdef __powerpc64__
+ /*
+ * Clamp TLB1 entries to 4G.
+ *
+ * While the e6500 supports up to 1TB mappings, the e5500
+ * only supports up to 4G mappings. (0b1011)
+ *
+ * If any e6500 machines capable of supporting a very
+ * large amount of memory appear in the future, we can
+ * revisit this.
+ *
+ * For now, though, since we have plenty of space in TLB1,
+ * always avoid creating entries larger than 4GB.
+ */
+ sz = MIN(sz, 1UL << 32);
+#endif
if (bootverbose)
printf("Wiring VA=%p to PA=%jx (size=%lx)\n",
(void *)va, (uintmax_t)pa, (long)sz);

File Metadata

Mime Type
text/plain
Expires
Sat, Aug 22, 7:08 AM (15 h, 23 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
37067920
Default Alt Text
D23244.id.diff (876 B)

Event Timeline