mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Add the machine-specific definitions for configuring the new physical
memory allocator. Approved by: re
This commit is contained in:
parent
a490742913
commit
9211deca08
1 changed files with 15 additions and 0 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue