summaryrefslogtreecommitdiffstats
path: root/sys/amd64/include/param.h
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2009-09-18 17:04:57 +0000
committeralc <alc@FreeBSD.org>2009-09-18 17:04:57 +0000
commit309c5ab06fe539d4f571d4c3b2acb779c5138fbf (patch)
tree7d24849cdaea55926149a790b882fea6f17045ab /sys/amd64/include/param.h
parent87c8593067033119e40d28b40a47c236b8a5f7ac (diff)
downloadFreeBSD-src-309c5ab06fe539d4f571d4c3b2acb779c5138fbf.zip
FreeBSD-src-309c5ab06fe539d4f571d4c3b2acb779c5138fbf.tar.gz
Add a new sysctl for reporting all of the supported page sizes.
Reviewed by: jhb MFC after: 3 weeks
Diffstat (limited to 'sys/amd64/include/param.h')
-rw-r--r--sys/amd64/include/param.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/amd64/include/param.h b/sys/amd64/include/param.h
index f9b6bd8..3ede601 100644
--- a/sys/amd64/include/param.h
+++ b/sys/amd64/include/param.h
@@ -108,6 +108,8 @@
#define NBPML4 (1ul<<PML4SHIFT)/* bytes/page map lev4 table */
#define PML4MASK (NBPML4-1)
+#define MAXPAGESIZES 3 /* maximum number of supported page sizes */
+
#define IOPAGES 2 /* pages of i/o permission bitmap */
#ifndef KSTACK_PAGES
OpenPOWER on IntegriCloud