Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/riscv/include NKMEMPAGES_MIN_DEFAULT is in pages no...



details:   https://anonhg.NetBSD.org/src/rev/35142df0ad5f
branches:  trunk
changeset: 371800:35142df0ad5f
user:      simonb <simonb%NetBSD.org@localhost>
date:      Wed Oct 12 07:50:00 2022 +0000

description:
NKMEMPAGES_MIN_DEFAULT is in pages not bytes (hint is in the name).
Also set NKMEMPAGES_MAX_UNLIMITED while we're here.

diffstat:

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

diffs (20 lines):

diff -r 9eeac6b3f19c -r 35142df0ad5f sys/arch/riscv/include/param.h
--- a/sys/arch/riscv/include/param.h    Tue Oct 11 22:03:37 2022 +0000
+++ b/sys/arch/riscv/include/param.h    Wed Oct 12 07:50:00 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: param.h,v 1.6 2021/07/19 10:28:58 christos Exp $ */
+/* $NetBSD: param.h,v 1.7 2022/10/12 07:50:00 simonb Exp $ */
 
 /*-
  * Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -67,8 +67,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_MIN_DEFAULT         ((128UL * 1024 * 1024) >> PAGE_SHIFT)
+#define NKMEMPAGES_MAX_UNLIMITED       1
 
 #define PGSHIFT                12
 #define        NBPG            (1 << PGSHIFT)



Home | Main Index | Thread Index | Old Index