Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/or1k/include NKMEMPAGES_{MIN,MAX}_DEFAULT should be...



details:   https://anonhg.NetBSD.org/src/rev/3aa2cf722e6a
branches:  trunk
changeset: 371835:3aa2cf722e6a
user:      skrll <skrll%NetBSD.org@localhost>
date:      Fri Oct 14 07:13:58 2022 +0000

description:
NKMEMPAGES_{MIN,MAX}_DEFAULT should be in pages.

diffstat:

 sys/arch/or1k/include/param.h |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (20 lines):

diff -r 2f897b9aa5af -r 3aa2cf722e6a sys/arch/or1k/include/param.h
--- a/sys/arch/or1k/include/param.h     Thu Oct 13 23:11:31 2022 +0000
+++ b/sys/arch/or1k/include/param.h     Fri Oct 14 07:13:58 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: param.h,v 1.2 2019/01/07 22:00:32 jdolecek Exp $ */
+/* $NetBSD: param.h,v 1.3 2022/10/14 07:13:58 skrll Exp $ */
 
 /*-
  * Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -56,8 +56,8 @@
 #define STACK_ALIGNBYTES       (__BIGGEST_ALIGNMENT__ - 1)
 #define        ALIGNBYTES32    __BIGGEST_ALIGNMENT__
 
-#define NKMEMPAGES_MAX_DEFAULT (2048UL * 1024 * 1024)
-#define NKMEMPAGES_MIN_DEFAULT (128UL * 1024 * 1024)
+#define NKMEMPAGES_MAX_DEFAULT ((2048UL * 1024 * 1024) >> PAGE_SHIFT)
+#define NKMEMPAGES_MIN_DEFAULT ((128UL * 1024 * 1024) >> PAGE_SHIFT)
 
 #define PGSHIFT                13
 #define        NBPG            (1 << PGSHIFT)



Home | Main Index | Thread Index | Old Index