Fix previous, which causes an integer overflow error in uvm_km.c on

32-bit kernels.
This commit is contained in:
nakayama 2012-03-10 07:54:17 +00:00
parent f36ba6b5ad
commit 0ee77e1078
1 changed files with 2 additions and 2 deletions

View File

@ -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 * Copyright (c) 1992, 1993
@ -200,7 +200,7 @@ extern int nbpg, pgofset, pgshift;
*/ */
#define NKMEMPAGES_MIN_DEFAULT ((64 * 1024 * 1024) >> PAGE_SHIFT) #define NKMEMPAGES_MIN_DEFAULT ((64 * 1024 * 1024) >> PAGE_SHIFT)
#undef NKMEMPAGES_MAX_UNLIMITED #undef NKMEMPAGES_MAX_UNLIMITED
#define NKMEMPAGES_MAX_DEFAULT ((2048L * 1024 * 1024) >> PAGE_SHIFT) #define NKMEMPAGES_MAX_DEFAULT ((2048UL * 1024 * 1024) >> PAGE_SHIFT)
#ifdef _KERNEL #ifdef _KERNEL
#ifndef _LOCORE #ifndef _LOCORE