summaryrefslogtreecommitdiffstats
path: root/sys/amd64/include/param.h
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2008-08-01 04:55:38 +0000
committeralc <alc@FreeBSD.org>2008-08-01 04:55:38 +0000
commit2496625e178d08381122840d5dc1186383a0a6e3 (patch)
treebcab2801e21f86db8fb42417bff0ff29e73a6f7d /sys/amd64/include/param.h
parentb7aa600c416b507a21191efa2689c0a03031d58e (diff)
downloadFreeBSD-src-2496625e178d08381122840d5dc1186383a0a6e3.zip
FreeBSD-src-2496625e178d08381122840d5dc1186383a0a6e3.tar.gz
Enhance pmap_change_attr() with the ability to demote 1GB page mappings.
Diffstat (limited to 'sys/amd64/include/param.h')
-rw-r--r--sys/amd64/include/param.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/amd64/include/param.h b/sys/amd64/include/param.h
index 2d9a6f3..a54ca93 100644
--- a/sys/amd64/include/param.h
+++ b/sys/amd64/include/param.h
@@ -146,6 +146,7 @@
#define trunc_page(x) ((unsigned long)(x) & ~(PAGE_MASK))
#define trunc_2mpage(x) ((unsigned long)(x) & ~PDRMASK)
#define round_2mpage(x) ((((unsigned long)(x)) + PDRMASK) & ~PDRMASK)
+#define trunc_1gpage(x) ((unsigned long)(x) & ~PDPMASK)
#define atop(x) ((unsigned long)(x) >> PAGE_SHIFT)
#define ptoa(x) ((unsigned long)(x) << PAGE_SHIFT)
OpenPOWER on IntegriCloud