defparam PMAP_MEMLIMIT

This commit is contained in:
aymeric 2004-03-17 14:14:02 +00:00
parent 8512c4b642
commit 3ddd2de94c
2 changed files with 8 additions and 4 deletions

View File

@ -1,11 +1,11 @@
# $NetBSD: files.powerpc,v 1.55 2003/11/19 14:27:24 scw Exp $
# $NetBSD: files.powerpc,v 1.56 2004/03/17 14:14:02 aymeric Exp $
defflag opt_altivec.h ALTIVEC K_ALTIVEC
defflag opt_openpic.h OPENPIC OPENPIC_SERIAL_MODE
defparam opt_ppcparam.h L2CR_CONFIG L3CR_CONFIG INTSTK CLOCKBASE
defflag opt_ppcarch.h PPC_OEA PPC_OEA64 PPC_MPC8XX PPC_IBM4XX PPC_IBM403
defflag opt_pmap.h PMAPDEBUG PMAPCHECK PMAPCOUNTERS
defparam opt_pmap.h PTEGCOUNT
defparam opt_pmap.h PTEGCOUNT PMAP_MEMLIMIT
file arch/powerpc/powerpc/copystr.c
file arch/powerpc/powerpc/fubyte.c

View File

@ -1,4 +1,4 @@
/* $NetBSD: pmap.c,v 1.20 2004/02/13 11:36:17 wiz Exp $ */
/* $NetBSD: pmap.c,v 1.21 2004/03/17 14:14:02 aymeric Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
* All rights reserved.
@ -67,7 +67,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.20 2004/02/13 11:36:17 wiz Exp $");
__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.21 2004/03/17 14:14:02 aymeric Exp $");
#include "opt_ppcarch.h"
#include "opt_altivec.h"
@ -108,7 +108,11 @@ int pmap_use_altivec;
volatile struct pteg *pmap_pteg_table;
unsigned int pmap_pteg_cnt;
unsigned int pmap_pteg_mask;
#ifdef PMAP_MEMLIMIT
paddr_t pmap_memlimit = PMAP_MEMLIMIT;
#else
paddr_t pmap_memlimit = -PAGE_SIZE; /* there is no limit */
#endif
struct pmap kernel_pmap_;
unsigned int pmap_pages_stolen;