Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/mips/mips Make this compile with PMAP_POOLPAGE_DEBUG.
details: https://anonhg.NetBSD.org/src/rev/44efcd88c176
branches: trunk
changeset: 762832:44efcd88c176
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Wed Mar 02 13:26:41 2011 +0000
description:
Make this compile with PMAP_POOLPAGE_DEBUG.
XXX: not sure if this is ever used
diffstat:
sys/arch/mips/mips/pmap.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diffs (48 lines):
diff -r 76561cc35b58 -r 44efcd88c176 sys/arch/mips/mips/pmap.c
--- a/sys/arch/mips/mips/pmap.c Wed Mar 02 13:24:43 2011 +0000
+++ b/sys/arch/mips/mips/pmap.c Wed Mar 02 13:26:41 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.196 2011/02/25 19:32:51 tsutsui Exp $ */
+/* $NetBSD: pmap.c,v 1.197 2011/03/02 13:26:41 tsutsui Exp $ */
/*-
* Copyright (c) 1998, 2001 The NetBSD Foundation, Inc.
@@ -67,7 +67,7 @@
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.196 2011/02/25 19:32:51 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.197 2011/03/02 13:26:41 tsutsui Exp $");
/*
* Manages physical address maps.
@@ -581,9 +581,9 @@
uvm_pageboot_alloc(sizeof(pt_entry_t) * Sysmapsize);
#ifdef PMAP_POOLPAGE_DEBUG
- mips_virtual_end -= poolpage.limit;
+ mips_virtual_end -= poolpage.size;
poolpage.base = mips_virtual_end;
- poolpage.sysmap += Sysmap + atop(poolpage.size);
+ poolpage.sysmap = Sysmap + atop(poolpage.size);
#endif
/*
* Initialize the pools.
@@ -2598,7 +2598,7 @@
KASSERT(!mips_pg_v(pte->pt_entry));
va = poolpage.base + va_offset;
poolpage.hint = roundup2(va_offset + 1, va_inc);
- pmap_kenter_pa(va, pa, VM_PROT_READ|VM_PORT_WRITE);
+ pmap_kenter_pa(va, pa, VM_PROT_READ|VM_PROT_WRITE, 0);
#else
#ifdef _LP64
KASSERT(mips_options.mips3_xkphys_cached);
@@ -2635,7 +2635,7 @@
{
paddr_t pa;
#ifdef PMAP_POOLPAGE_DEBUG
- KASSERT(poolpage.start <= va && va < poolpage.start + poolpage.size);
+ KASSERT(poolpage.base <= va && va < poolpage.base + poolpage.size);
pa = mips_tlbpfn_to_paddr(kvtopte(va)->pt_entry);
#elif defined(_LP64)
KASSERT(MIPS_XKPHYS_P(va));
Home |
Main Index |
Thread Index |
Old Index