diff options
author | alc <alc@FreeBSD.org> | 2007-06-04 08:02:22 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2007-06-04 08:02:22 +0000 |
commit | ccfe66d4772cf23b6ae2022b5a283a0b76050c71 (patch) | |
tree | a4f02f0059d02892cfefab074ac553e05aaf236a /sys | |
parent | 741062ba0a29af10c3bbcf79e9889536a3a9c9c5 (diff) | |
download | FreeBSD-src-ccfe66d4772cf23b6ae2022b5a283a0b76050c71.zip FreeBSD-src-ccfe66d4772cf23b6ae2022b5a283a0b76050c71.tar.gz |
Add the machine-specific definitions for configuring the new physical
memory allocator.
Approved by: re
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arm/include/vmparam.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/sys/arm/include/vmparam.h b/sys/arm/include/vmparam.h index ad17df4..5185a48 100644 --- a/sys/arm/include/vmparam.h +++ b/sys/arm/include/vmparam.h @@ -59,6 +59,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: * * - DEFAULT for all systems @@ -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) |