Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F144508750
D16027.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
627 B
Referenced Files
None
Subscribers
None
D16027.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D16027: Support 2GB of memory on Malta systems with FreeBSD/mips.
Attached
Detach File
Event Timeline
Log In to Comment