[Bug 193465] [mips] malloc failures on mips, ath(4)

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Sep 8 18:05:18 UTC 2014


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=193465

Sean Bruno <sbruno at FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|Needs Triage                |In Discussion

--- Comment #2 from Sean Bruno <sbruno at FreeBSD.org> ---
Specifically, this is what I am doing to work around this issue:

Index: sys/kern/kern_malloc.c
===================================================================
--- sys/kern/kern_malloc.c    (revision 271278)
+++ sys/kern/kern_malloc.c    (working copy)
@@ -151,10 +151,21 @@
     {1024, "1024", },
     {2048, "2048", },
     {4096, "4096", },
+#if PAGE_SIZE > 4096
     {8192, "8192", },
+#if PAGE_SIZE > 8192
     {16384, "16384", },
+#if PAGE_SIZE > 16384
     {32768, "32768", },
+#if PAGE_SIZE > 32768
     {65536, "65536", },
+#if PAGE_SIZE > 65536
+#error "Unsupported PAGE_SIZE"
+#endif
+#endif
+#endif
+#endif
+#endif
     {0, NULL},
 };

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list