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
This commit is contained in:
Rafal Jaworowski 2013-08-26 16:23:54 +00:00
parent 026bf0a293
commit 995c2b63f7
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=254915

View File

@ -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)