Page MenuHomeFreeBSD

D16027.diff
No OneTemporary

D16027.diff

Index: head/sys/mips/malta/malta_machdep.c
===================================================================
--- head/sys/mips/malta/malta_machdep.c
+++ head/sys/mips/malta/malta_machdep.c
@@ -344,6 +344,15 @@
printf("memsize = %llu (0x%08x)\n",
(unsigned long long) memsize, memsize);
printf("ememsize = %llu\n", (unsigned long long) ememsize);
+
+#ifdef __mips_o32
+ /*
+ * For O32 phys_avail[] can't address memory beyond 2^32,
+ * so cap extended memory to 2GB minus one page.
+ */
+ if (ememsize >= 2ULL * 1024 * 1024 * 1024)
+ ememsize = 2ULL * 1024 * 1024 * 1024 - PAGE_SIZE;
+#endif
}
/*

File Metadata

Mime Type
text/plain
Expires
Tue, Feb 10, 12:08 AM (13 h, 7 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28607718
Default Alt Text
D16027.diff (627 B)

Event Timeline