diff options
author | alc <alc@FreeBSD.org> | 2008-08-01 04:55:38 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2008-08-01 04:55:38 +0000 |
commit | 2496625e178d08381122840d5dc1186383a0a6e3 (patch) | |
tree | bcab2801e21f86db8fb42417bff0ff29e73a6f7d /sys/amd64/include/param.h | |
parent | b7aa600c416b507a21191efa2689c0a03031d58e (diff) | |
download | FreeBSD-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.h | 1 |
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) |