From 9211deca086e99f0108540effbdbcf1a1fd73c5d Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Mon, 4 Jun 2007 08:02:22 +0000 Subject: [PATCH] Add the machine-specific definitions for configuring the new physical memory allocator. Approved by: re --- sys/arm/include/vmparam.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/sys/arm/include/vmparam.h b/sys/arm/include/vmparam.h index ad17df46024..5185a485a18 100644 --- a/sys/arm/include/vmparam.h +++ b/sys/arm/include/vmparam.h @@ -58,6 +58,16 @@ */ #define VM_PHYSSEG_DENSE +/* + * Create two free page pools: VM_FREEPOOL_DEFAULT is the default pool + * from which physical pages are allocated and VM_FREEPOOL_DIRECT is + * the pool from which physical pages for small UMA objects are + * allocated. + */ +#define VM_NFREEPOOL 2 +#define VM_FREEPOOL_DEFAULT 0 +#define VM_FREEPOOL_DIRECT 1 + /* * we support 2 free lists: * @@ -69,6 +79,11 @@ #define VM_FREELIST_DEFAULT 0 #define VM_FREELIST_ISADMA 1 +/* + * The largest allocation size is 1MB. + */ +#define VM_NFREEORDER 9 + #define UPT_MAX_ADDRESS VADDR(UPTPTDI + 3, 0) #define UPT_MIN_ADDRESS VADDR(UPTPTDI, 0)