patch-2.1.23 linux/mm/page_alloc.c
Next file: linux/mm/slab.c
Previous file: linux/mm/mremap.c
Back to the patch index
Back to the overall index
- Lines: 31
- Date:
Sun Jan 26 12:07:49 1997
- Orig file:
v2.1.22/linux/mm/page_alloc.c
- Orig date:
Tue Oct 29 19:58:48 1996
diff -u --recursive --new-file v2.1.22/linux/mm/page_alloc.c linux/mm/page_alloc.c
@@ -5,6 +5,7 @@
* Swap reorganised 29.12.95, Stephen Tweedie
*/
+#include <linux/config.h>
#include <linux/mm.h>
#include <linux/sched.h>
#include <linux/head.h>
@@ -34,7 +35,13 @@
* of different sizes
*/
+#if CONFIG_AP1000
+/* the AP+ needs to allocate 8MB contiguous, aligned chunks of ram
+ for the ring buffers */
+#define NR_MEM_LISTS 12
+#else
#define NR_MEM_LISTS 6
+#endif
/* The start of this MUST match the start of "struct page" */
struct free_area_struct {
@@ -239,7 +246,7 @@
nr ++;
}
total += nr * ((PAGE_SIZE>>10) << order);
- printk("%lu*%lukB ", nr, (PAGE_SIZE>>10) << order);
+ printk("%lu*%lukB ", nr, (unsigned long)((PAGE_SIZE>>10) << order));
}
restore_flags(flags);
printk("= %lukB)\n", total);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov