Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sparc64/include Fix previous, which causes an integ...
details: https://anonhg.NetBSD.org/src/rev/f565349c0f03
branches: trunk
changeset: 777928:f565349c0f03
user: nakayama <nakayama%NetBSD.org@localhost>
date: Sat Mar 10 07:54:17 2012 +0000
description:
Fix previous, which causes an integer overflow error in uvm_km.c on
32-bit kernels.
diffstat:
sys/arch/sparc64/include/param.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r fa08ba461fc8 -r f565349c0f03 sys/arch/sparc64/include/param.h
--- a/sys/arch/sparc64/include/param.h Fri Mar 09 21:03:46 2012 +0000
+++ b/sys/arch/sparc64/include/param.h Sat Mar 10 07:54:17 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: param.h,v 1.49 2012/03/09 10:42:12 jdc Exp $ */
+/* $NetBSD: param.h,v 1.50 2012/03/10 07:54:17 nakayama Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -200,7 +200,7 @@
*/
#define NKMEMPAGES_MIN_DEFAULT ((64 * 1024 * 1024) >> PAGE_SHIFT)
#undef NKMEMPAGES_MAX_UNLIMITED
-#define NKMEMPAGES_MAX_DEFAULT ((2048L * 1024 * 1024) >> PAGE_SHIFT)
+#define NKMEMPAGES_MAX_DEFAULT ((2048UL * 1024 * 1024) >> PAGE_SHIFT)
#ifdef _KERNEL
#ifndef _LOCORE
Home |
Main Index |
Thread Index |
Old Index