Poor sun3 (but not sun3x) has only 31MB KVM address space,
so reduce NKMEMPAGES_MAX_DEFAULT from 64MB to 16MB. Fixes "panic: ubc_init: failed to map ubc_object" on TME emulating 3/120 with >16MB RAM. Should be pulled up to netbsd-6.
This commit is contained in:
parent
cc216625a3
commit
f85debeceb
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: param.h,v 1.60 2012/02/10 17:35:47 para Exp $ */
|
/* $NetBSD: param.h,v 1.61 2012/08/11 14:35:33 tsutsui Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1988 University of Utah.
|
* Copyright (c) 1988 University of Utah.
|
||||||
@ -75,13 +75,6 @@
|
|||||||
|
|
||||||
#include <m68k/param.h>
|
#include <m68k/param.h>
|
||||||
|
|
||||||
/*
|
|
||||||
* Minimum and maximum sizes of the kernel malloc arena in PAGE_SIZE-sized
|
|
||||||
* logical pages.
|
|
||||||
*/
|
|
||||||
#define NKMEMPAGES_MIN_DEFAULT ((8 * 1024 * 1024) >> PAGE_SHIFT)
|
|
||||||
#define NKMEMPAGES_MAX_DEFAULT ((64 * 1024 * 1024) >> PAGE_SHIFT)
|
|
||||||
|
|
||||||
#if defined(_KERNEL) && !defined(_LOCORE)
|
#if defined(_KERNEL) && !defined(_LOCORE)
|
||||||
|
|
||||||
#include <machine/intr.h>
|
#include <machine/intr.h>
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: param3.h,v 1.54 2011/02/08 20:20:25 rmind Exp $ */
|
/* $NetBSD: param3.h,v 1.55 2012/08/11 14:35:33 tsutsui Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1988 University of Utah.
|
* Copyright (c) 1988 University of Utah.
|
||||||
@ -43,3 +43,11 @@
|
|||||||
|
|
||||||
#define KERNBASE3 0x0E000000 /* start of kernel virtual */
|
#define KERNBASE3 0x0E000000 /* start of kernel virtual */
|
||||||
#define KERN_END3 0x0FE00000 /* end of kernel virtual */
|
#define KERN_END3 0x0FE00000 /* end of kernel virtual */
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Minimum and maximum sizes of the kernel malloc arena in PAGE_SIZE-sized
|
||||||
|
* logical pages.
|
||||||
|
* Note maximum value can't be so large due to limited KVA space as above.
|
||||||
|
*/
|
||||||
|
#define NKMEMPAGES_MIN_DEFAULT ((8 * 1024 * 1024) >> PAGE_SHIFT)
|
||||||
|
#define NKMEMPAGES_MAX_DEFAULT ((16 * 1024 * 1024) >> PAGE_SHIFT)
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: param3x.h,v 1.17 2011/02/08 20:20:25 rmind Exp $ */
|
/* $NetBSD: param3x.h,v 1.18 2012/08/11 14:35:33 tsutsui Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1988 University of Utah.
|
* Copyright (c) 1988 University of Utah.
|
||||||
@ -43,3 +43,10 @@
|
|||||||
|
|
||||||
#define KERNBASE3X 0xF8000000 /* start of kernel virtual */
|
#define KERNBASE3X 0xF8000000 /* start of kernel virtual */
|
||||||
#define KERN_END3X 0xFE000000 /* end of kernel virtual */
|
#define KERN_END3X 0xFE000000 /* end of kernel virtual */
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Minimum and maximum sizes of the kernel malloc arena in PAGE_SIZE-sized
|
||||||
|
* logical pages.
|
||||||
|
*/
|
||||||
|
#define NKMEMPAGES_MIN_DEFAULT ((8 * 1024 * 1024) >> PAGE_SHIFT)
|
||||||
|
#define NKMEMPAGES_MAX_DEFAULT ((64 * 1024 * 1024) >> PAGE_SHIFT)
|
||||||
|
Loading…
Reference in New Issue
Block a user