Module Name: src
Committed By: simonb
Date: Wed Oct 12 07:50:00 UTC 2022
Modified Files:
src/sys/arch/riscv/include: param.h
Log Message:
NKMEMPAGES_MIN_DEFAULT is in pages not bytes (hint is in the name).
Also set NKMEMPAGES_MAX_UNLIMITED while we're here.
To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/sys/arch/riscv/include/param.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/riscv/include/param.h
diff -u src/sys/arch/riscv/include/param.h:1.6 src/sys/arch/riscv/include/param.h:1.7
--- src/sys/arch/riscv/include/param.h:1.6 Mon Jul 19 10:28:58 2021
+++ src/sys/arch/riscv/include/param.h Wed Oct 12 07:50:00 2022
@@ -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)