From 3ddd2de94c8f451eae4c4a613bc58bccb8cc87d2 Mon Sep 17 00:00:00 2001 From: aymeric Date: Wed, 17 Mar 2004 14:14:02 +0000 Subject: [PATCH] defparam PMAP_MEMLIMIT --- sys/arch/powerpc/conf/files.powerpc | 4 ++-- sys/arch/powerpc/oea/pmap.c | 8 ++++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/sys/arch/powerpc/conf/files.powerpc b/sys/arch/powerpc/conf/files.powerpc index ca850aa3ad36..9ce1a623245b 100644 --- a/sys/arch/powerpc/conf/files.powerpc +++ b/sys/arch/powerpc/conf/files.powerpc @@ -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 diff --git a/sys/arch/powerpc/oea/pmap.c b/sys/arch/powerpc/oea/pmap.c index 83f084e39ec1..211c6dcddf94 100644 --- a/sys/arch/powerpc/oea/pmap.c +++ b/sys/arch/powerpc/oea/pmap.c @@ -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 -__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;