aboutsummaryrefslogtreecommitdiff
path: root/sys/arm/include/param.h
diff options
context:
space:
mode:
authorRafal Jaworowski <raj@FreeBSD.org>2013-08-26 17:12:30 +0000
committerRafal Jaworowski <raj@FreeBSD.org>2013-08-26 17:12:30 +0000
commitb949475db06fe90f162d53b526dd22e2d6a596cb (patch)
treeeec9dee62370b26307761675e1d2902d10fe35af /sys/arm/include/param.h
parent0c4367400d4f3e7874470e5d9bb1ebb311f3675f (diff)
Notes
Diffstat (limited to 'sys/arm/include/param.h')
-rw-r--r--sys/arm/include/param.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/arm/include/param.h b/sys/arm/include/param.h
index 9ffb118bf851..15fc2793798c 100644
--- a/sys/arm/include/param.h
+++ b/sys/arm/include/param.h
@@ -108,9 +108,10 @@
#define PDR_SHIFT 20 /* log2(NBPDR) */
#define NBPDR (1 << PDR_SHIFT)
+#define PDRMASK (NBPDR - 1)
#define NPDEPG (1 << (32 - PDR_SHIFT))
-#define MAXPAGESIZES 1 /* maximum number of supported page sizes */
+#define MAXPAGESIZES 2 /* maximum number of supported page sizes */
#ifndef KSTACK_PAGES
#define KSTACK_PAGES 2
@@ -133,8 +134,8 @@
*/
#define trunc_page(x) ((x) & ~PAGE_MASK)
#define round_page(x) (((x) + PAGE_MASK) & ~PAGE_MASK)
-#define trunc_4mpage(x) ((unsigned)(x) & ~PDRMASK)
-#define round_4mpage(x) ((((unsigned)(x)) + PDRMASK) & ~PDRMASK)
+#define trunc_1mpage(x) ((unsigned)(x) & ~PDRMASK)
+#define round_1mpage(x) ((((unsigned)(x)) + PDRMASK) & ~PDRMASK)
#define atop(x) ((unsigned)(x) >> PAGE_SHIFT)
#define ptoa(x) ((unsigned)(x) << PAGE_SHIFT)