Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/arm/include/arm32 Define the min and max page size ...



details:   https://anonhg.NetBSD.org/src/rev/ddb4da1925d4
branches:  trunk
changeset: 467040:ddb4da1925d4
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Jan 11 19:06:34 2020 +0000

description:
Define the min and max page size supported for the benefit of jemalloc

diffstat:

 sys/arch/arm/include/arm32/vmparam.h |  7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r 55af6f1ddeca -r ddb4da1925d4 sys/arch/arm/include/arm32/vmparam.h
--- a/sys/arch/arm/include/arm32/vmparam.h      Sat Jan 11 16:29:07 2020 +0000
+++ b/sys/arch/arm/include/arm32/vmparam.h      Sat Jan 11 19:06:34 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vmparam.h,v 1.45 2019/06/19 09:54:42 skrll Exp $       */
+/*     $NetBSD: vmparam.h,v 1.46 2020/01/11 19:06:34 christos Exp $    */
 
 /*
  * Copyright (c) 2001, 2002 Wasabi Systems, Inc.
@@ -84,6 +84,11 @@
 #define        PAGE_SIZE       (1 << PAGE_SHIFT)
 #define        PAGE_MASK       (PAGE_SIZE - 1)
 
+#define        MIN_PAGE_SHIFT  12                      /* normal */
+#define        MAX_PAGE_SHIFT  13                      /* _ARM_ARCH_6 */
+#define        MIN_PAGE_SIZE   (1 << MIN_PAGE_SHIFT)
+#define        MAX_PAGE_SIZE   (1 << MAX_PAGE_SHIFT)
+
 /*
  * Mach derived constants
  */



Home | Main Index | Thread Index | Old Index