Module Name: src Committed By: skrll Date: Fri Oct 14 07:13:59 UTC 2022
Modified Files: src/sys/arch/or1k/include: param.h Log Message: NKMEMPAGES_{MIN,MAX}_DEFAULT should be in pages. To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/sys/arch/or1k/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/or1k/include/param.h diff -u src/sys/arch/or1k/include/param.h:1.2 src/sys/arch/or1k/include/param.h:1.3 --- src/sys/arch/or1k/include/param.h:1.2 Mon Jan 7 22:00:32 2019 +++ src/sys/arch/or1k/include/param.h Fri Oct 14 07:13:58 2022 @@ -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)