diff options
author | raj <raj@FreeBSD.org> | 2013-08-26 16:23:54 +0000 |
---|---|---|
committer | raj <raj@FreeBSD.org> | 2013-08-26 16:23:54 +0000 |
commit | 6a3d0fcc3e115ea510661a545dcce6729b009c90 (patch) | |
tree | 5c64cf0b2e8d9135bacd288cce65430d8dd72425 /sys/arm/include | |
parent | 1075825bedc5d2c67b3c4aa29eaac740db7216bd (diff) | |
download | FreeBSD-src-6a3d0fcc3e115ea510661a545dcce6729b009c90.zip FreeBSD-src-6a3d0fcc3e115ea510661a545dcce6729b009c90.tar.gz |
Provide settings for superpage reservation system on ARM.
This allows for enabling and configuring superpages reservation mechanism in
order to allocate and populate 256 4KB base pages (for the purpose of
promotion to a 1MB superpage).
Submitted by: Zbigniew Bodek <zbb@semihalf.com>
Reviewed by: alc
Sponsored by: The FreeBSD Foundation, Semihalf
Diffstat (limited to 'sys/arm/include')
-rw-r--r-- | sys/arm/include/vmparam.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/sys/arm/include/vmparam.h b/sys/arm/include/vmparam.h index 598cf42..93d7587 100644 --- a/sys/arm/include/vmparam.h +++ b/sys/arm/include/vmparam.h @@ -109,10 +109,17 @@ #define VM_NFREEORDER 9 /* - * Disable superpage reservations. + * Enable superpage reservations: 1 level. */ #ifndef VM_NRESERVLEVEL -#define VM_NRESERVLEVEL 0 +#define VM_NRESERVLEVEL 1 +#endif + +/* + * Level 0 reservations consist of 256 pages. + */ +#ifndef VM_LEVEL_0_ORDER +#define VM_LEVEL_0_ORDER 8 #endif #define UPT_MAX_ADDRESS VADDR(UPTPTDI + 3, 0) |