diff options
author | Alan Cox <alc@FreeBSD.org> | 2007-12-27 16:45:39 +0000 |
---|---|---|
committer | Alan Cox <alc@FreeBSD.org> | 2007-12-27 16:45:39 +0000 |
commit | b8e7fc24fe7ebc11bf82aa8c7421c3f53a4522dd (patch) | |
tree | 55ca53f4bcd6d131ca9394e3be1a58050a881ae4 /sys/i386 | |
parent | b27aa20e8ddd6d8fdaf42185082108691990c1d4 (diff) | |
download | src-b8e7fc24fe7ebc11bf82aa8c7421c3f53a4522dd.tar.gz src-b8e7fc24fe7ebc11bf82aa8c7421c3f53a4522dd.zip |
Add configuration knobs for the superpage reservation system. Initially,
the reservation will only be enabled on amd64.
Notes
Notes:
svn path=/head/; revision=174938
Diffstat (limited to 'sys/i386')
-rw-r--r-- | sys/i386/include/vmparam.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/sys/i386/include/vmparam.h b/sys/i386/include/vmparam.h index 2aa2848a1100..6ab27cc9c4ab 100644 --- a/sys/i386/include/vmparam.h +++ b/sys/i386/include/vmparam.h @@ -123,6 +123,25 @@ #endif /* + * Disable superpage reservations. + */ +#ifndef VM_NRESERVLEVEL +#define VM_NRESERVLEVEL 0 +#endif + +/* + * Level 0 reservations consist of 512 pages under PAE and 1024 pages + * otherwise. + */ +#ifndef VM_LEVEL_0_ORDER +#ifdef PAE +#define VM_LEVEL_0_ORDER 9 +#else +#define VM_LEVEL_0_ORDER 10 +#endif +#endif + +/* * Kernel physical load address. */ #ifndef KERNLOAD |