Update pmap_update to now take the updated pmap as an argument.
This will allow improvements to the pmaps so that they can more easily defer expensive operations, eg tlb/cache flush, til the last possible moment. Currently this is a no-op on most platforms, so they should see no difference. Reviewed by Jason.
This commit is contained in:
parent
ee1ad7fcec
commit
0e7661f023
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: bus_dma.c,v 1.3 2001/07/22 15:11:01 wiz Exp $ */
|
||||
/* $NetBSD: bus_dma.c,v 1.4 2001/09/10 21:19:40 chris Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1997, 1998, 2001 The NetBSD Foundation, Inc.
|
||||
@ -39,7 +39,7 @@
|
||||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: bus_dma.c,v 1.3 2001/07/22 15:11:01 wiz Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: bus_dma.c,v 1.4 2001/09/10 21:19:40 chris Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
@ -623,7 +623,7 @@ _bus_dmamem_map(bus_dma_tag_t t, bus_dma_segment_t *segs, int nsegs,
|
||||
PMAP_WIRED | VM_PROT_READ | VM_PROT_WRITE);
|
||||
}
|
||||
}
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
|
||||
return (0);
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.12 2001/08/22 19:13:09 thorpej Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.13 2001/09/10 21:19:41 chris Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2001 The NetBSD Foundation, Inc.
|
||||
@ -675,7 +675,7 @@ cpu_startup(void)
|
||||
curbufsize -= PAGE_SIZE;
|
||||
}
|
||||
}
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
|
||||
/*
|
||||
* Allocate a submap for exec arguments. This map effectively
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.248 2001/07/27 00:25:18 thorpej Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.249 2001/09/10 21:19:08 chris Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998, 1999, 2000 The NetBSD Foundation, Inc.
|
||||
@ -74,7 +74,7 @@
|
||||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.248 2001/07/27 00:25:18 thorpej Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.249 2001/09/10 21:19:08 chris Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
@ -919,7 +919,7 @@ cpu_startup()
|
||||
curbufsize -= PAGE_SIZE;
|
||||
}
|
||||
}
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
|
||||
/*
|
||||
* Allocate a submap for exec arguments. This map effectively
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: vm_machdep.c,v 1.74 2001/09/06 21:20:43 nathanw Exp $ */
|
||||
/* $NetBSD: vm_machdep.c,v 1.75 2001/09/10 21:19:09 chris Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994, 1995, 1996 Carnegie-Mellon University.
|
||||
@ -29,7 +29,7 @@
|
||||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.74 2001/09/06 21:20:43 nathanw Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.75 2001/09/10 21:19:09 chris Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
@ -318,7 +318,7 @@ vmapbuf(struct buf *bp, vsize_t len)
|
||||
faddr += PAGE_SIZE;
|
||||
taddr += PAGE_SIZE;
|
||||
}
|
||||
pmap_update();
|
||||
pmap_update(vm_map_pmap(phys_map));
|
||||
}
|
||||
|
||||
/*
|
||||
@ -335,7 +335,7 @@ vunmapbuf(struct buf *bp, vsize_t len)
|
||||
off = (vaddr_t)bp->b_data - addr;
|
||||
len = round_page(off + len);
|
||||
pmap_remove(vm_map_pmap(phys_map), addr, addr + len);
|
||||
pmap_update();
|
||||
pmap_update(vm_map_pmap(phys_map));
|
||||
uvm_km_free_wakeup(phys_map, addr, len);
|
||||
bp->b_data = bp->b_saveaddr;
|
||||
bp->b_saveaddr = NULL;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: bus_dma.c,v 1.47 2001/07/12 23:25:40 thorpej Exp $ */
|
||||
/* $NetBSD: bus_dma.c,v 1.48 2001/09/10 21:19:09 chris Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
|
||||
@ -39,7 +39,7 @@
|
||||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: bus_dma.c,v 1.47 2001/07/12 23:25:40 thorpej Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: bus_dma.c,v 1.48 2001/09/10 21:19:09 chris Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
@ -553,7 +553,7 @@ _bus_dmamem_map(bus_dma_tag_t t, bus_dma_segment_t *segs, int nsegs,
|
||||
PMAP_WIRED | VM_PROT_READ | VM_PROT_WRITE);
|
||||
}
|
||||
}
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
|
||||
return (0);
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: pmap.h,v 1.53 2001/07/15 21:57:02 thorpej Exp $ */
|
||||
/* $NetBSD: pmap.h,v 1.54 2001/09/10 21:19:09 chris Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998, 1999, 2000, 2001 The NetBSD Foundation, Inc.
|
||||
@ -201,7 +201,7 @@ void pmap_do_tlb_shootdown(struct cpu_info *, struct trapframe *);
|
||||
#define pmap_wired_count(pmap) ((pmap)->pm_stats.wired_count)
|
||||
|
||||
#define pmap_copy(dp, sp, da, l, sa) /* nothing */
|
||||
#define pmap_update() /* nothing (yet) */
|
||||
#define pmap_update(pmap) /* nothing (yet) */
|
||||
|
||||
#define pmap_is_referenced(pg) \
|
||||
(((pg)->mdpage.pvh_attrs & PGA_REFERENCED) != 0)
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.163 2001/06/02 18:09:08 chs Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.164 2001/09/10 21:19:10 chris Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988 University of Utah.
|
||||
@ -234,7 +234,7 @@ cpu_startup()
|
||||
pmap_enter(pmap_kernel(), (vaddr_t)msgbufaddr + i * NBPG,
|
||||
msgbufpa + i * NBPG, VM_PROT_READ|VM_PROT_WRITE,
|
||||
VM_PROT_READ|VM_PROT_WRITE|PMAP_WIRED);
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
initmsgbuf(msgbufaddr, m68k_round_page(MSGBUFSIZE));
|
||||
|
||||
/*
|
||||
@ -297,7 +297,7 @@ cpu_startup()
|
||||
curbufsize -= PAGE_SIZE;
|
||||
}
|
||||
}
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
|
||||
/*
|
||||
* Allocate a submap for exec arguments. This map effectively
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: mem.c,v 1.30 2001/04/24 04:30:52 thorpej Exp $ */
|
||||
/* $NetBSD: mem.c,v 1.31 2001/09/10 21:19:10 chris Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988 University of Utah.
|
||||
@ -136,13 +136,13 @@ mmrw(dev, uio, flags)
|
||||
VM_PROT_WRITE;
|
||||
pmap_enter(pmap_kernel(), (vm_offset_t)vmmap,
|
||||
trunc_page(v), prot, prot|PMAP_WIRED);
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
o = uio->uio_offset & PGOFSET;
|
||||
c = min(uio->uio_resid, (int)(NBPG - o));
|
||||
error = uiomove((caddr_t)vmmap + o, c, uio);
|
||||
pmap_remove(pmap_kernel(), (vm_offset_t)vmmap,
|
||||
(vm_offset_t)vmmap + NBPG);
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
continue;
|
||||
|
||||
/* minor device 1 is kernel memory */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: pmap.c,v 1.90 2001/08/15 01:03:59 mhitch Exp $ */
|
||||
/* $NetBSD: pmap.c,v 1.91 2001/09/10 21:19:10 chris Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1999 The NetBSD Foundation, Inc.
|
||||
@ -792,7 +792,7 @@ pmap_map(virt, start, end, prot)
|
||||
virt += PAGE_SIZE;
|
||||
start += PAGE_SIZE;
|
||||
}
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
return(virt);
|
||||
}
|
||||
|
||||
@ -2578,7 +2578,7 @@ pmap_enter_ptpage(pmap, va)
|
||||
bzero((char *)kpt->kpt_va, NBPG);
|
||||
pmap_enter(pmap, va, ptpa, VM_PROT_READ | VM_PROT_WRITE,
|
||||
VM_PROT_READ | VM_PROT_WRITE | PMAP_WIRED);
|
||||
pmap_update();
|
||||
pmap_update(pmap);
|
||||
#if defined(M68060)
|
||||
if (cputype == CPU_68060) {
|
||||
pmap_changebit(ptpa, PG_CCB, 0);
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: vm_machdep.c,v 1.60 2001/08/19 18:09:20 chs Exp $ */
|
||||
/* $NetBSD: vm_machdep.c,v 1.61 2001/09/10 21:19:10 chris Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988 University of Utah.
|
||||
@ -172,7 +172,7 @@ pagemove(from, to, size)
|
||||
to += PAGE_SIZE;
|
||||
size -= PAGE_SIZE;
|
||||
}
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
}
|
||||
|
||||
/*
|
||||
@ -359,7 +359,7 @@ vmapbuf(bp, len)
|
||||
kva += PAGE_SIZE;
|
||||
len -= PAGE_SIZE;
|
||||
} while (len);
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
}
|
||||
|
||||
/*
|
||||
@ -380,7 +380,7 @@ vunmapbuf(bp, len)
|
||||
off = (vaddr_t)bp->b_data - kva;
|
||||
len = m68k_round_page(off + len);
|
||||
pmap_kremove(kva, len);
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
uvm_km_free_wakeup(phys_map, kva, len);
|
||||
bp->b_data = bp->b_saveaddr;
|
||||
bp->b_saveaddr = 0;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: gayle_pcmcia.c,v 1.9 2001/04/24 04:30:52 thorpej Exp $ */
|
||||
/* $NetBSD: gayle_pcmcia.c,v 1.10 2001/09/10 21:19:09 chris Exp $ */
|
||||
|
||||
/* public domain */
|
||||
|
||||
@ -140,7 +140,7 @@ pccard_attach(parent, myself, aux)
|
||||
pmap_enter(kernel_map->pmap,
|
||||
i - GAYLE_PCMCIA_START + pcmcia_base, i,
|
||||
VM_PROT_READ | VM_PROT_WRITE, TRUE);
|
||||
pmap_update();
|
||||
pmap_update(kernel_map->pmap);
|
||||
|
||||
/* override the one-byte access methods for I/O space */
|
||||
pcmio_bs_methods = amiga_bus_stride_1;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: pmap.h,v 1.32 2001/05/26 21:27:04 chs Exp $ */
|
||||
/* $NetBSD: pmap.h,v 1.33 2001/09/10 21:19:10 chris Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1987 Carnegie-Mellon University
|
||||
@ -136,7 +136,7 @@ struct pmap kernel_pmap_store;
|
||||
#define pmap_resident_count(pmap) ((pmap)->pm_stats.resident_count)
|
||||
#define pmap_wired_count(pmap) ((pmap)->pm_stats.wired_count)
|
||||
|
||||
#define pmap_update() /* nothing (yet) */
|
||||
#define pmap_update(pmap) /* nothing (yet) */
|
||||
|
||||
vaddr_t pmap_map __P((vaddr_t, paddr_t, paddr_t, int));
|
||||
void pmap_procwr __P((struct proc *, vaddr_t, u_long));
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.14 2001/08/24 04:34:25 chs Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.15 2001/09/10 21:19:34 chris Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (C) 1995, 1996 Wolfgang Solfrank.
|
||||
@ -805,7 +805,7 @@ cpu_startup()
|
||||
curbufsize -= PAGE_SIZE;
|
||||
}
|
||||
}
|
||||
pmap_update();
|
||||
pmap_update(kernel_map->pmap);
|
||||
|
||||
/*
|
||||
* Allocate a submap for exec arguments. This map effectively
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: bus_dma.c,v 1.8 2001/07/05 14:44:29 soda Exp $ */
|
||||
/* $NetBSD: bus_dma.c,v 1.9 2001/09/10 21:19:31 chris Exp $ */
|
||||
/* NetBSD: bus_dma.c,v 1.20 2000/01/10 03:24:36 simonb Exp */
|
||||
|
||||
/*-
|
||||
@ -810,7 +810,7 @@ _bus_dmamem_map(t, segs, nsegs, size, kvap, flags)
|
||||
/* XXX Do something about COHERENT here. */
|
||||
}
|
||||
}
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
|
||||
return (0);
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: bus_space_sparse.c,v 1.5 2001/08/13 19:08:13 soda Exp $ */
|
||||
/* $NetBSD: bus_space_sparse.c,v 1.6 2001/09/10 21:19:31 chris Exp $ */
|
||||
/* NetBSD: bus_machdep.c,v 1.1 2000/01/26 18:48:00 drochner Exp */
|
||||
|
||||
/*-
|
||||
@ -133,7 +133,7 @@ arc_sparse_bus_space_compose_handle(bst, addr, size, flags, bshp)
|
||||
start, end);
|
||||
for (va = vaddr; start < end; start += NBPG, va += NBPG)
|
||||
pmap_kenter_pa(va, start, VM_PROT_READ|VM_PROT_WRITE);
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
vaddr += (offset & PGOFSET);
|
||||
if (cacheable)
|
||||
arc_kseg2_make_cacheable(vaddr, size);
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.62 2001/06/13 15:39:13 soda Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.63 2001/09/10 21:19:31 chris Exp $ */
|
||||
/* $OpenBSD: machdep.c,v 1.36 1999/05/22 21:22:19 weingart Exp $ */
|
||||
|
||||
/*
|
||||
@ -560,7 +560,7 @@ cpu_startup()
|
||||
curbufsize -= PAGE_SIZE;
|
||||
}
|
||||
}
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
|
||||
/*
|
||||
* Allocate a submap for exec arguments. This map effectively
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: arm32_machdep.c,v 1.4 2001/09/09 10:33:43 toshii Exp $ */
|
||||
/* $NetBSD: arm32_machdep.c,v 1.5 2001/09/10 21:19:35 chris Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994-1998 Mark Brinicombe.
|
||||
@ -348,7 +348,7 @@ cpu_startup()
|
||||
for (loop = 0; loop < btoc(MSGBUFSIZE); ++loop)
|
||||
pmap_kenter_pa((vaddr_t)msgbufaddr + loop * NBPG,
|
||||
msgbufphys + loop * NBPG, VM_PROT_READ|VM_PROT_WRITE);
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
initmsgbuf(msgbufaddr, round_page(MSGBUFSIZE));
|
||||
|
||||
/*
|
||||
@ -415,7 +415,7 @@ cpu_startup()
|
||||
curbufsize -= PAGE_SIZE;
|
||||
}
|
||||
}
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
|
||||
/*
|
||||
* Allocate a submap for exec arguments. This map effectively
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: bus_dma.c,v 1.1 2001/07/28 13:28:03 chris Exp $ */
|
||||
/* $NetBSD: bus_dma.c,v 1.2 2001/09/10 21:19:35 chris Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
|
||||
@ -533,7 +533,7 @@ _bus_dmamem_map(t, segs, nsegs, size, kvap, flags)
|
||||
#endif /* DEBUG_DMA */
|
||||
}
|
||||
}
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
#ifdef DEBUG_DMA
|
||||
printf("dmamem_map: =%p\n", *kvap);
|
||||
#endif /* DEBUG_DMA */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: mem.c,v 1.1 2001/07/28 13:28:03 chris Exp $ */
|
||||
/* $NetBSD: mem.c,v 1.2 2001/09/10 21:19:35 chris Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988 University of Utah.
|
||||
@ -124,13 +124,13 @@ mmrw(dev, uio, flags)
|
||||
VM_PROT_WRITE;
|
||||
pmap_enter(pmap_kernel(), (vaddr_t)memhook,
|
||||
trunc_page(v), prot, prot|PMAP_WIRED);
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
o = uio->uio_offset & PGOFSET;
|
||||
c = min(uio->uio_resid, (int)(NBPG - o));
|
||||
error = uiomove((caddr_t)memhook + o, c, uio);
|
||||
pmap_remove(pmap_kernel(), (vaddr_t)memhook,
|
||||
(vaddr_t)memhook + NBPG);
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
continue;
|
||||
|
||||
/* minor device 1 is kernel memory */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: pmap.c,v 1.18 2001/08/11 14:47:56 chris Exp $ */
|
||||
/* $NetBSD: pmap.c,v 1.19 2001/09/10 21:19:35 chris Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2001 Richard Earnshaw
|
||||
@ -142,7 +142,7 @@
|
||||
#include <machine/param.h>
|
||||
#include <machine/katelib.h>
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.18 2001/08/11 14:47:56 chris Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.19 2001/09/10 21:19:35 chris Exp $");
|
||||
#ifdef PMAP_DEBUG
|
||||
#define PDEBUG(_lev_,_stat_) \
|
||||
if (pmap_debug_level >= (_lev_)) \
|
||||
@ -602,7 +602,7 @@ pmap_alloc_pvpage(pmap, mode)
|
||||
*/
|
||||
|
||||
pmap_kenter_pa(pv_cachedva, VM_PAGE_TO_PHYS(pg), VM_PROT_ALL);
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
pvpage = (struct pv_page *) pv_cachedva;
|
||||
pv_cachedva = 0;
|
||||
return (pmap_add_pvpage(pvpage, mode != ALLOCPV_NONEED));
|
||||
@ -988,7 +988,7 @@ pmap_map(va, spa, epa, prot)
|
||||
va += NBPG;
|
||||
spa += NBPG;
|
||||
}
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
return(va);
|
||||
}
|
||||
|
||||
@ -1389,7 +1389,7 @@ pmap_alloc_l1pt(void)
|
||||
m = m->pageq.tqe_next;
|
||||
}
|
||||
pmap_unmap_ptes(pmap_kernel());
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
|
||||
#ifdef DIAGNOSTIC
|
||||
if (m)
|
||||
@ -1409,7 +1409,7 @@ pmap_free_l1pt(pt)
|
||||
{
|
||||
/* Separate the physical memory for the virtual space */
|
||||
pmap_remove(pmap_kernel(), pt->pt_va, pt->pt_va + PD_SIZE);
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
|
||||
/* Return the physical memory */
|
||||
uvm_pglistfree(&pt->pt_plist);
|
||||
@ -1548,7 +1548,7 @@ pmap_pinit(pmap)
|
||||
/* Map zero page for the pmap. This will also map the L2 for it */
|
||||
pmap_enter(pmap, 0x00000000, systempage.pv_pa,
|
||||
VM_PROT_READ, VM_PROT_READ | PMAP_WIRED);
|
||||
pmap_update();
|
||||
pmap_update(pmap);
|
||||
}
|
||||
|
||||
|
||||
@ -1607,7 +1607,7 @@ pmap_destroy(pmap)
|
||||
|
||||
/* Remove the zero page mapping */
|
||||
pmap_remove(pmap, 0x00000000, 0x00000000 + NBPG);
|
||||
pmap_update();
|
||||
pmap_update(pmap);
|
||||
|
||||
/*
|
||||
* Free any page tables still mapped
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: vm_machdep.c,v 1.5 2001/09/09 10:33:43 toshii Exp $ */
|
||||
/* $NetBSD: vm_machdep.c,v 1.6 2001/09/10 21:19:35 chris Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994-1998 Mark Brinicombe.
|
||||
@ -236,7 +236,7 @@ cpu_swapin(p)
|
||||
/* Map the system page */
|
||||
pmap_enter(p->p_vmspace->vm_map.pmap, 0x00000000, systempage.pv_pa,
|
||||
VM_PROT_READ, VM_PROT_READ|PMAP_WIRED);
|
||||
pmap_update();
|
||||
pmap_update(p->p_vmspace->vm_map.pmap);
|
||||
}
|
||||
|
||||
|
||||
@ -253,7 +253,7 @@ cpu_swapout(p)
|
||||
|
||||
/* Free the system page mapping */
|
||||
pmap_remove(p->p_vmspace->vm_map.pmap, 0x00000000, 0x00000000 + NBPG);
|
||||
pmap_update();
|
||||
pmap_update(p->p_vmspace->vm_map.pmap);
|
||||
}
|
||||
|
||||
|
||||
@ -344,7 +344,7 @@ vmapbuf(bp, len)
|
||||
taddr += PAGE_SIZE;
|
||||
len -= PAGE_SIZE;
|
||||
}
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
}
|
||||
|
||||
/*
|
||||
@ -375,7 +375,7 @@ vunmapbuf(bp, len)
|
||||
len = round_page(off + len);
|
||||
|
||||
pmap_remove(pmap_kernel(), addr, addr + len);
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
uvm_km_free_wakeup(phys_map, addr, len);
|
||||
bp->b_data = bp->b_saveaddr;
|
||||
bp->b_saveaddr = 0;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: footbridge_io.c,v 1.2 2001/07/28 18:12:44 chris Exp $ */
|
||||
/* $NetBSD: footbridge_io.c,v 1.3 2001/09/10 21:19:36 chris Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1997 Causality Limited
|
||||
@ -214,7 +214,7 @@ footbridge_mem_bs_map(t, bpa, size, cacheable, bshp)
|
||||
va += NBPG;
|
||||
startpa += NBPG;
|
||||
}
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
|
||||
/* if (bpa >= DC21285_PCI_MEM_VSIZE && bpa != DC21285_ARMCSR_VBASE)
|
||||
panic("footbridge_bs_map: Address out of range (%08lx)\n", bpa);
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: pmap.h,v 1.13 2001/08/11 13:20:20 chris Exp $ */
|
||||
/* $NetBSD: pmap.h,v 1.14 2001/09/10 21:19:35 chris Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994,1995 Mark Brinicombe.
|
||||
@ -152,7 +152,7 @@ extern int pmap_debug_level; /* Only exists if PMAP_DEBUG */
|
||||
* Macros that we need to export
|
||||
*/
|
||||
#define pmap_kernel() (&kernel_pmap_store)
|
||||
#define pmap_update() /* nothing (yet) */
|
||||
#define pmap_update(pmap) /* nothing (yet) */
|
||||
#define pmap_resident_count(pmap) ((pmap)->pm_stats.resident_count)
|
||||
#define pmap_wired_count(pmap) ((pmap)->pm_stats.wired_count)
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: mainbus_io.c,v 1.4 2001/09/10 02:20:20 reinoud Exp $ */
|
||||
/* $NetBSD: mainbus_io.c,v 1.5 2001/09/10 21:19:35 chris Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1997 Mark Brinicombe.
|
||||
@ -170,7 +170,7 @@ mainbus_bs_map(t, bpa, size, cacheable, bshp)
|
||||
else
|
||||
*pte &= ~PT_CACHEABLE;
|
||||
}
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
|
||||
return(0);
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: sa11x0_io.c,v 1.2 2001/07/28 18:12:44 chris Exp $ */
|
||||
/* $NetBSD: sa11x0_io.c,v 1.3 2001/09/10 21:19:36 chris Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1997 Mark Brinicombe.
|
||||
@ -170,7 +170,7 @@ sa11x0_bs_map(t, bpa, size, cacheable, bshp)
|
||||
else
|
||||
*pte &= ~PT_CACHEABLE;
|
||||
}
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
|
||||
return(0);
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.11 2001/06/30 16:49:16 bjh21 Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.12 2001/09/10 21:19:32 chris Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998 Ben Harris
|
||||
@ -33,7 +33,7 @@
|
||||
|
||||
#include <sys/param.h>
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.11 2001/06/30 16:49:16 bjh21 Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.12 2001/09/10 21:19:32 chris Exp $");
|
||||
|
||||
#include <sys/buf.h>
|
||||
#include <sys/kernel.h>
|
||||
@ -203,7 +203,7 @@ cpu_startup()
|
||||
curbufsize -= PAGE_SIZE;
|
||||
}
|
||||
}
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
|
||||
/*
|
||||
* Allocate a submap for exec arguments. This map effectively
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: pmap.c,v 1.31 2001/08/20 23:12:54 bjh21 Exp $ */
|
||||
/* $NetBSD: pmap.c,v 1.32 2001/09/10 21:19:33 chris Exp $ */
|
||||
/*-
|
||||
* Copyright (c) 1997, 1998, 2000 Ben Harris
|
||||
* All rights reserved.
|
||||
@ -105,7 +105,7 @@
|
||||
|
||||
#include <sys/param.h>
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.31 2001/08/20 23:12:54 bjh21 Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.32 2001/09/10 21:19:33 chris Exp $");
|
||||
|
||||
#include <sys/kernel.h> /* for cold */
|
||||
#include <sys/malloc.h>
|
||||
@ -985,7 +985,7 @@ pmap_reference(pmap_t pmap)
|
||||
* now.
|
||||
*/
|
||||
void
|
||||
pmap_update(void)
|
||||
pmap_update(struct pmap *pmap)
|
||||
{
|
||||
UVMHIST_FUNC("pmap_update");
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: vm_machdep.c,v 1.18 2001/08/19 17:43:44 chs Exp $ */
|
||||
/* $NetBSD: vm_machdep.c,v 1.19 2001/09/10 21:19:33 chris Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2000, 2001 Ben Harris
|
||||
@ -66,7 +66,7 @@
|
||||
|
||||
#include <sys/param.h>
|
||||
|
||||
__RCSID("$NetBSD: vm_machdep.c,v 1.18 2001/08/19 17:43:44 chs Exp $");
|
||||
__RCSID("$NetBSD: vm_machdep.c,v 1.19 2001/09/10 21:19:33 chris Exp $");
|
||||
|
||||
#include <sys/buf.h>
|
||||
#include <sys/mount.h> /* XXX syscallargs.h uses fhandle_t and fsid_t */
|
||||
@ -203,7 +203,7 @@ vmapbuf(struct buf *bp, vsize_t len)
|
||||
faddr += PAGE_SIZE;
|
||||
taddr += PAGE_SIZE;
|
||||
}
|
||||
pmap_update();
|
||||
pmap_update(vm_map_pmap(phys_map));
|
||||
}
|
||||
|
||||
/*
|
||||
@ -220,7 +220,7 @@ vunmapbuf(struct buf *bp, vsize_t len)
|
||||
off = (vaddr_t)bp->b_data - addr;
|
||||
len = round_page(off + len);
|
||||
pmap_remove(vm_map_pmap(phys_map), addr, addr + len);
|
||||
pmap_update();
|
||||
pmap_update(vm_map_pmap(phys_map));
|
||||
uvm_km_free_wakeup(phys_map, addr, len);
|
||||
bp->b_data = bp->b_saveaddr;
|
||||
bp->b_saveaddr = NULL;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: ofrom.c,v 1.10 2001/04/24 04:30:54 thorpej Exp $ */
|
||||
/* $NetBSD: ofrom.c,v 1.11 2001/09/10 21:19:11 chris Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright 1998
|
||||
@ -186,13 +186,13 @@ ofromrw(dev, uio, flags)
|
||||
pmap_enter(pmap_kernel(), (vm_offset_t)memhook,
|
||||
trunc_page(v), uio->uio_rw == UIO_READ ?
|
||||
VM_PROT_READ : VM_PROT_WRITE, PMAP_WIRED);
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
o = uio->uio_offset & PGOFSET;
|
||||
c = min(uio->uio_resid, (int)(NBPG - o));
|
||||
error = uiomove((caddr_t)memhook + o, c, uio);
|
||||
pmap_remove(pmap_kernel(), (vm_offset_t)memhook,
|
||||
(vm_offset_t)memhook + NBPG);
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
}
|
||||
|
||||
if (physlock > 1)
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: bus.c,v 1.27 2001/05/26 21:27:05 chs Exp $ */
|
||||
/* $NetBSD: bus.c,v 1.28 2001/09/10 21:19:11 chris Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||
@ -285,7 +285,7 @@ bus_space_handle_t *bshp;
|
||||
|
||||
*ptep = npte;
|
||||
}
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
TBIAS();
|
||||
return (0);
|
||||
}
|
||||
@ -713,7 +713,7 @@ bus_dmamem_map(t, segs, nsegs, size, kvap, flags)
|
||||
VM_PROT_READ | VM_PROT_WRITE | PMAP_WIRED);
|
||||
}
|
||||
}
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
|
||||
return (0);
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.111 2001/08/24 04:34:25 chs Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.112 2001/09/10 21:19:11 chris Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988 University of Utah.
|
||||
@ -148,7 +148,7 @@ consinit()
|
||||
pmap_enter(pmap_kernel(), (vaddr_t)msgbufaddr + i * NBPG,
|
||||
msgbufpa + i * NBPG, VM_PROT_READ|VM_PROT_WRITE,
|
||||
VM_PROT_READ|VM_PROT_WRITE|PMAP_WIRED);
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
initmsgbuf(msgbufaddr, m68k_round_page(MSGBUFSIZE));
|
||||
|
||||
/*
|
||||
@ -266,7 +266,7 @@ cpu_startup()
|
||||
curbufsize -= PAGE_SIZE;
|
||||
}
|
||||
}
|
||||
pmap_update();
|
||||
pmap_update(kernel_map->pmap);
|
||||
|
||||
/*
|
||||
* Allocate a submap for exec arguments. This map effectively
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: mem.c,v 1.21 2001/04/24 04:30:55 thorpej Exp $ */
|
||||
/* $NetBSD: mem.c,v 1.22 2001/09/10 21:19:11 chris Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988 University of Utah.
|
||||
@ -144,13 +144,13 @@ mmrw(dev, uio, flags)
|
||||
VM_PROT_WRITE;
|
||||
pmap_enter(pmap_kernel(), (vaddr_t)vmmap,
|
||||
trunc_page(v), prot, prot|PMAP_WIRED);
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
o = uio->uio_offset & PGOFSET;
|
||||
c = min(uio->uio_resid, (int)(NBPG - o));
|
||||
error = uiomove((caddr_t)vmmap + o, c, uio);
|
||||
pmap_remove(pmap_kernel(), (vaddr_t)vmmap,
|
||||
(vaddr_t)vmmap + NBPG);
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
break;
|
||||
|
||||
case 1: /* minor device 1 is kernel memory */
|
||||
|
@ -753,7 +753,7 @@ pmap_map(virt, start, end, prot)
|
||||
virt += PAGE_SIZE;
|
||||
start += PAGE_SIZE;
|
||||
}
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
return(virt);
|
||||
}
|
||||
|
||||
@ -2526,7 +2526,7 @@ pmap_enter_ptpage(pmap, va)
|
||||
bzero((char *)kpt->kpt_va, NBPG);
|
||||
pmap_enter(pmap, va, ptpa, VM_PROT_READ | VM_PROT_WRITE,
|
||||
VM_PROT_READ | VM_PROT_WRITE | PMAP_WIRED);
|
||||
pmap_update();
|
||||
pmap_update(pmap);
|
||||
#if defined(M68060)
|
||||
if (cputype == CPU_68060) {
|
||||
pmap_changebit(ptpa, PG_CCB, 0);
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: trap.c,v 1.61 2001/06/02 18:09:11 chs Exp $ */
|
||||
/* $NetBSD: trap.c,v 1.62 2001/09/10 21:19:12 chris Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988 University of Utah.
|
||||
@ -749,14 +749,14 @@ writeback(fp, docachepush)
|
||||
pmap_enter(pmap_kernel(), (vaddr_t)vmmap,
|
||||
trunc_page(f->f_fa), VM_PROT_WRITE,
|
||||
VM_PROT_WRITE|PMAP_WIRED);
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
fa = (u_int)&vmmap[(f->f_fa & PGOFSET) & ~0xF];
|
||||
bcopy((caddr_t)&f->f_pd0, (caddr_t)fa, 16);
|
||||
(void) pmap_extract(pmap_kernel(), (vaddr_t)fa, &pa);
|
||||
DCFL(pa);
|
||||
pmap_remove(pmap_kernel(), (vaddr_t)vmmap,
|
||||
(vaddr_t)&vmmap[NBPG]);
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
} else
|
||||
printf("WARNING: pid %d(%s) uid %d: CPUSH not done\n",
|
||||
p->p_pid, p->p_comm, p->p_ucred->cr_uid);
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: vm_machdep.c,v 1.38 2001/08/19 18:09:21 chs Exp $ */
|
||||
/* $NetBSD: vm_machdep.c,v 1.39 2001/09/10 21:19:12 chris Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988 University of Utah.
|
||||
@ -173,7 +173,7 @@ pagemove(from, to, size)
|
||||
to += PAGE_SIZE;
|
||||
size -= PAGE_SIZE;
|
||||
}
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
}
|
||||
|
||||
/*
|
||||
@ -357,7 +357,7 @@ vmapbuf(bp, len)
|
||||
kva += PAGE_SIZE;
|
||||
len -= PAGE_SIZE;
|
||||
} while (len);
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: pmap.h,v 1.26 2001/05/26 21:27:05 chs Exp $ */
|
||||
/* $NetBSD: pmap.h,v 1.27 2001/09/10 21:19:11 chris Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1987 Carnegie-Mellon University
|
||||
@ -153,7 +153,7 @@ struct pmap kernel_pmap_store;
|
||||
#define pmap_resident_count(pmap) ((pmap)->pm_stats.resident_count)
|
||||
#define pmap_wired_count(pmap) ((pmap)->pm_stats.wired_count)
|
||||
|
||||
#define pmap_update() /* nothing (yet) */
|
||||
#define pmap_update(pmap) /* nothing (yet) */
|
||||
|
||||
#define active_user_pmap(pm) \
|
||||
(curproc && \
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.67 2001/08/31 04:44:57 simonb Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.68 2001/09/10 21:19:12 chris Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (C) 1995, 1996 Wolfgang Solfrank.
|
||||
@ -420,7 +420,7 @@ cpu_startup()
|
||||
panic("initppc: no room for interrupt register");
|
||||
pmap_enter(pmap_kernel(), bebox_mb_reg, MOTHER_BOARD_REG,
|
||||
VM_PROT_READ|VM_PROT_WRITE, VM_PROT_READ|VM_PROT_WRITE|PMAP_WIRED);
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
|
||||
/*
|
||||
* Initialize error message buffer (at end of core).
|
||||
@ -431,7 +431,7 @@ cpu_startup()
|
||||
pmap_enter(pmap_kernel(), msgbuf_vaddr + i * NBPG,
|
||||
msgbuf_paddr + i * NBPG, VM_PROT_READ|VM_PROT_WRITE,
|
||||
VM_PROT_READ|VM_PROT_WRITE|PMAP_WIRED);
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
initmsgbuf((caddr_t)msgbuf_vaddr, round_page(MSGBUFSIZE));
|
||||
|
||||
printf("%s", version);
|
||||
@ -493,7 +493,7 @@ cpu_startup()
|
||||
curbufsize -= PAGE_SIZE;
|
||||
}
|
||||
}
|
||||
pmap_update();
|
||||
pmap_update(kernel_map->pmap);
|
||||
|
||||
/*
|
||||
* Allocate a submap for exec arguments. This map effectively
|
||||
@ -767,6 +767,6 @@ mapiodev(pa, len)
|
||||
faddr += NBPG;
|
||||
taddr += NBPG;
|
||||
}
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
return (void *)(va + off);
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: pmap.c,v 1.4 2001/07/26 15:41:14 drochner Exp $ */
|
||||
/* $NetBSD: pmap.c,v 1.5 2001/09/10 21:19:38 chris Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1991, 1993
|
||||
@ -676,7 +676,7 @@ pmap_map(va, spa, epa, prot)
|
||||
va += NBPG;
|
||||
spa += NBPG;
|
||||
}
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
return (va);
|
||||
}
|
||||
|
||||
@ -1639,7 +1639,7 @@ pmap_collect(pmap)
|
||||
* all necessary locking.
|
||||
*/
|
||||
pmap_remove(pmap, VM_MIN_ADDRESS, VM_MAX_ADDRESS);
|
||||
pmap_update();
|
||||
pmap_update(pmap);
|
||||
}
|
||||
|
||||
#ifdef notyet
|
||||
@ -2544,7 +2544,7 @@ pmap_enter_ptpage(pmap, va)
|
||||
bzero((caddr_t)kpt->kpt_va, NBPG);
|
||||
pmap_enter(pmap, va, ptpa, VM_PROT_READ | VM_PROT_WRITE,
|
||||
VM_PROT_READ | VM_PROT_WRITE | PMAP_WIRED);
|
||||
pmap_update();
|
||||
pmap_update(pmap);
|
||||
#ifdef DEBUG
|
||||
if (pmapdebug & (PDB_ENTER|PDB_PTPAGE)) {
|
||||
int ix = pmap_ste(pmap, va) - pmap_ste(pmap, 0);
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: trap.c,v 1.4 2001/06/15 17:48:13 drochner Exp $ */
|
||||
/* $NetBSD: trap.c,v 1.5 2001/09/10 21:19:38 chris Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988 University of Utah.
|
||||
@ -756,14 +756,14 @@ writeback(fp, docachepush)
|
||||
pmap_enter(pmap_kernel(), (vaddr_t)vmmap,
|
||||
trunc_page(f->f_fa), VM_PROT_WRITE,
|
||||
VM_PROT_WRITE|PMAP_WIRED);
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
fa = (u_int)&vmmap[(f->f_fa & PGOFSET) & ~0xF];
|
||||
bcopy((caddr_t)&f->f_pd0, (caddr_t)fa, 16);
|
||||
pmap_extract(pmap_kernel(), (vaddr_t)fa, &pa);
|
||||
DCFL(pa);
|
||||
pmap_remove(pmap_kernel(), (vaddr_t)vmmap,
|
||||
(vaddr_t)&vmmap[NBPG]);
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
} else
|
||||
printf("WARNING: pid %d(%s) uid %d: CPUSH not done\n",
|
||||
p->p_pid, p->p_comm, p->p_ucred->cr_uid);
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: vm_machdep.c,v 1.6 2001/08/19 18:09:21 chs Exp $ */
|
||||
/* $NetBSD: vm_machdep.c,v 1.7 2001/09/10 21:19:38 chris Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988 University of Utah.
|
||||
@ -229,7 +229,7 @@ pagemove(from, to, size)
|
||||
to += PAGE_SIZE;
|
||||
size -= PAGE_SIZE;
|
||||
}
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
}
|
||||
|
||||
/*
|
||||
@ -320,7 +320,7 @@ vmapbuf(bp, len)
|
||||
kva += PAGE_SIZE;
|
||||
len -= PAGE_SIZE;
|
||||
} while (len);
|
||||
pmap_update();
|
||||
pmap_update(kpmap);
|
||||
}
|
||||
|
||||
/*
|
||||
@ -341,7 +341,7 @@ vunmapbuf(bp, len)
|
||||
off = (vaddr_t)bp->b_data - kva;
|
||||
len = m68k_round_page(off + len);
|
||||
pmap_kremove(kva, len);
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
uvm_km_free_wakeup(phys_map, kva, len);
|
||||
bp->b_data = bp->b_saveaddr;
|
||||
bp->b_saveaddr = 0;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: pmap.h,v 1.3 2001/06/15 17:48:14 drochner Exp $ */
|
||||
/* $NetBSD: pmap.h,v 1.4 2001/09/10 21:19:40 chris Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1987 Carnegie-Mellon University
|
||||
@ -149,7 +149,7 @@ extern struct pv_entry *pv_table; /* array of entries, one per page */
|
||||
#define pmap_resident_count(pmap) ((pmap)->pm_stats.resident_count)
|
||||
#define pmap_wired_count(pmap) ((pmap)->pm_stats.wired_count)
|
||||
|
||||
#define pmap_update() /* nothing (yet) */
|
||||
#define pmap_update(pmap) /* nothing (yet) */
|
||||
|
||||
extern pt_entry_t *Sysmap;
|
||||
extern char *vmmap; /* map for mem, dumps, etc. */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: bus.c,v 1.10 2001/07/22 15:23:53 wiz Exp $ */
|
||||
/* $NetBSD: bus.c,v 1.11 2001/09/10 21:19:22 chris Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||
@ -721,7 +721,7 @@ _bus_dmamem_map(t, segs, nsegs, size, kvap, flags)
|
||||
/* XXX Do something about COHERENT here. */
|
||||
}
|
||||
}
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.34 2001/07/22 15:23:53 wiz Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.35 2001/09/10 21:19:22 chris Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2000 Soren S. Jorvang. All rights reserved.
|
||||
@ -279,7 +279,7 @@ cpu_startup()
|
||||
curbufsize -= PAGE_SIZE;
|
||||
}
|
||||
}
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
|
||||
/*
|
||||
* Allocate a submap for exec arguments. This map effectively
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: gapspci_dma.c,v 1.5 2001/05/26 21:27:06 chs Exp $ */
|
||||
/* $NetBSD: gapspci_dma.c,v 1.6 2001/09/10 21:19:36 chris Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2001 The NetBSD Foundation, Inc.
|
||||
@ -598,7 +598,7 @@ gaps_dmamem_map(bus_dma_tag_t t, bus_dma_segment_t *segs, int nsegs,
|
||||
VM_PROT_READ | VM_PROT_WRITE);
|
||||
}
|
||||
}
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
|
||||
return (0);
|
||||
}
|
||||
@ -621,7 +621,7 @@ gaps_dmamem_unmap(bus_dma_tag_t t, caddr_t kva, size_t size)
|
||||
|
||||
size = round_page(size);
|
||||
pmap_kremove((vaddr_t) kva, size);
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
uvm_km_free(kernel_map, (vaddr_t) kva, size);
|
||||
}
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.27 2001/07/07 10:43:11 ichiro Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.28 2001/09/10 21:19:12 chris Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
|
||||
@ -957,7 +957,7 @@ shpcmcia_mem_add_mapping(bpa, size, type, bshp)
|
||||
*pte |= m;
|
||||
pmap_update_pg(va);
|
||||
}
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: leds.c,v 1.8 2001/04/24 04:30:56 thorpej Exp $ */
|
||||
/* $NetBSD: leds.c,v 1.9 2001/09/10 21:19:12 chris Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988 University of Utah.
|
||||
@ -61,7 +61,7 @@ ledinit()
|
||||
|
||||
pmap_enter(pmap_kernel(), (vaddr_t)ledbase, (paddr_t)LED_ADDR,
|
||||
VM_PROT_READ|VM_PROT_WRITE, VM_PROT_READ|VM_PROT_WRITE|PMAP_WIRED);
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
ledaddr = (u_int8_t *) ((long)ledbase | (LED_ADDR & PGOFSET));
|
||||
}
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.147 2001/06/02 18:09:12 chs Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.148 2001/09/10 21:19:12 chris Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988 University of Utah.
|
||||
@ -218,7 +218,7 @@ hp300_init()
|
||||
pmap_enter(pmap_kernel(), (vaddr_t)msgbufaddr + i * NBPG,
|
||||
avail_end + i * NBPG, VM_PROT_READ|VM_PROT_WRITE,
|
||||
VM_PROT_READ|VM_PROT_WRITE|PMAP_WIRED);
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
initmsgbuf(msgbufaddr, m68k_round_page(MSGBUFSIZE));
|
||||
|
||||
/*
|
||||
@ -229,13 +229,13 @@ hp300_init()
|
||||
pmap_enter(pmap_kernel(), bootinfo_va, bootinfo_pa,
|
||||
VM_PROT_READ|VM_PROT_WRITE,
|
||||
VM_PROT_READ|VM_PROT_WRITE|PMAP_WIRED);
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
bt_mag = lookup_bootinfo(BTINFO_MAGIC);
|
||||
if (bt_mag == NULL ||
|
||||
bt_mag->magic1 != BOOTINFO_MAGIC1 ||
|
||||
bt_mag->magic2 != BOOTINFO_MAGIC2) {
|
||||
pmap_remove(pmap_kernel(), bootinfo_va, bootinfo_va + NBPG);
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
bootinfo_va = 0;
|
||||
}
|
||||
}
|
||||
@ -375,7 +375,7 @@ cpu_startup()
|
||||
curbufsize -= PAGE_SIZE;
|
||||
}
|
||||
}
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
|
||||
/*
|
||||
* Allocate a submap for exec arguments. This map effectively
|
||||
@ -969,7 +969,7 @@ dumpsys()
|
||||
pmap_enter(pmap_kernel(), (vaddr_t)vmmap, maddr,
|
||||
VM_PROT_READ, VM_PROT_READ|PMAP_WIRED);
|
||||
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
error = (*dump)(dumpdev, blkno, vmmap, NBPG);
|
||||
bad:
|
||||
switch (error) {
|
||||
@ -1295,7 +1295,7 @@ parityerrorfind()
|
||||
for (pg = btoc(lowram); pg < btoc(lowram)+physmem; pg++) {
|
||||
pmap_enter(pmap_kernel(), (vaddr_t)vmmap, ctob(pg),
|
||||
VM_PROT_READ, VM_PROT_READ|PMAP_WIRED);
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
ip = (int *)vmmap;
|
||||
for (o = 0; o < NBPG; o += sizeof(int))
|
||||
i = *ip++;
|
||||
@ -1308,7 +1308,7 @@ parityerrorfind()
|
||||
done:
|
||||
looking = 0;
|
||||
pmap_remove(pmap_kernel(), (vaddr_t)vmmap, (vaddr_t)&vmmap[NBPG]);
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
ecacheon();
|
||||
splx(s);
|
||||
return(found);
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: mem.c,v 1.32 2001/04/24 04:30:57 thorpej Exp $ */
|
||||
/* $NetBSD: mem.c,v 1.33 2001/09/10 21:19:13 chris Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988 University of Utah.
|
||||
@ -138,13 +138,13 @@ mmrw(dev, uio, flags)
|
||||
VM_PROT_WRITE;
|
||||
pmap_enter(pmap_kernel(), (vaddr_t)vmmap,
|
||||
trunc_page(v), prot, prot|PMAP_WIRED);
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
o = uio->uio_offset & PGOFSET;
|
||||
c = min(uio->uio_resid, (int)(NBPG - o));
|
||||
error = uiomove((caddr_t)vmmap + o, c, uio);
|
||||
pmap_remove(pmap_kernel(), (vaddr_t)vmmap,
|
||||
(vaddr_t)vmmap + NBPG);
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
continue;
|
||||
|
||||
/* minor device 1 is kernel memory */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: pmap.c,v 1.95 2001/07/06 05:57:13 chs Exp $ */
|
||||
/* $NetBSD: pmap.c,v 1.96 2001/09/10 21:19:13 chris Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1999 The NetBSD Foundation, Inc.
|
||||
@ -710,7 +710,7 @@ pmap_map(va, spa, epa, prot)
|
||||
va += NBPG;
|
||||
spa += NBPG;
|
||||
}
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
return (va);
|
||||
}
|
||||
|
||||
@ -1737,7 +1737,7 @@ pmap_collect(pmap)
|
||||
* all necessary locking.
|
||||
*/
|
||||
pmap_remove(pmap, VM_MIN_ADDRESS, VM_MAX_ADDRESS);
|
||||
pmap_update();
|
||||
pmap_update(pmap);
|
||||
}
|
||||
|
||||
#ifdef notyet
|
||||
@ -2682,7 +2682,7 @@ pmap_enter_ptpage(pmap, va)
|
||||
bzero((caddr_t)kpt->kpt_va, NBPG);
|
||||
pmap_enter(pmap, va, ptpa, VM_PROT_READ | VM_PROT_WRITE,
|
||||
VM_PROT_READ | VM_PROT_WRITE | PMAP_WIRED);
|
||||
pmap_update();
|
||||
pmap_update(pmap);
|
||||
#ifdef DEBUG
|
||||
if (pmapdebug & (PDB_ENTER|PDB_PTPAGE)) {
|
||||
int ix = pmap_ste(pmap, va) - pmap_ste(pmap, 0);
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: trap.c,v 1.90 2001/06/02 18:09:12 chs Exp $ */
|
||||
/* $NetBSD: trap.c,v 1.91 2001/09/10 21:19:13 chris Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988 University of Utah.
|
||||
@ -744,14 +744,14 @@ writeback(fp, docachepush)
|
||||
pmap_enter(pmap_kernel(), (vaddr_t)vmmap,
|
||||
trunc_page(f->f_fa), VM_PROT_WRITE,
|
||||
VM_PROT_WRITE|PMAP_WIRED);
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
fa = (u_int)&vmmap[(f->f_fa & PGOFSET) & ~0xF];
|
||||
bcopy((caddr_t)&f->f_pd0, (caddr_t)fa, 16);
|
||||
(void) pmap_extract(pmap_kernel(), (vaddr_t)fa, &pa);
|
||||
DCFL(pa);
|
||||
pmap_remove(pmap_kernel(), (vaddr_t)vmmap,
|
||||
(vaddr_t)&vmmap[NBPG]);
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
} else
|
||||
printf("WARNING: pid %d(%s) uid %d: CPUSH not done\n",
|
||||
p->p_pid, p->p_comm, p->p_ucred->cr_uid);
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: vm_machdep.c,v 1.60 2001/07/06 05:53:35 chs Exp $ */
|
||||
/* $NetBSD: vm_machdep.c,v 1.61 2001/09/10 21:19:13 chris Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988 University of Utah.
|
||||
@ -229,7 +229,7 @@ pagemove(from, to, size)
|
||||
to += PAGE_SIZE;
|
||||
size -= PAGE_SIZE;
|
||||
}
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
}
|
||||
|
||||
/*
|
||||
@ -319,7 +319,7 @@ vmapbuf(bp, len)
|
||||
kva += PAGE_SIZE;
|
||||
len -= PAGE_SIZE;
|
||||
} while (len);
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
}
|
||||
|
||||
/*
|
||||
@ -341,7 +341,7 @@ vunmapbuf(bp, len)
|
||||
len = m68k_round_page(off + len);
|
||||
|
||||
pmap_remove(vm_map_pmap(phys_map), kva, kva + len);
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
uvm_km_free_wakeup(phys_map, kva, len);
|
||||
bp->b_data = bp->b_saveaddr;
|
||||
bp->b_saveaddr = 0;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: pmap.h,v 1.31 2001/05/26 21:27:07 chs Exp $ */
|
||||
/* $NetBSD: pmap.h,v 1.32 2001/09/10 21:19:13 chris Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1987 Carnegie-Mellon University
|
||||
@ -146,7 +146,7 @@ extern struct pv_entry *pv_table; /* array of entries, one per page */
|
||||
#define pmap_resident_count(pmap) ((pmap)->pm_stats.resident_count)
|
||||
#define pmap_wired_count(pmap) ((pmap)->pm_stats.wired_count)
|
||||
|
||||
#define pmap_update() /* nothing (yet) */
|
||||
#define pmap_update(pmap) /* nothing (yet) */
|
||||
|
||||
extern pt_entry_t *Sysmap;
|
||||
extern char *vmmap; /* map for mem, dumps, etc. */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: mem.c,v 1.4 2001/07/07 06:29:13 ichiro Exp $ */
|
||||
/* $NetBSD: mem.c,v 1.5 2001/09/10 21:19:37 chris Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988 University of Utah.
|
||||
@ -124,13 +124,13 @@ mmrw(dev, uio, flags)
|
||||
VM_PROT_WRITE;
|
||||
pmap_enter(pmap_kernel(), (vaddr_t)memhook,
|
||||
trunc_page(v), prot, prot|PMAP_WIRED);
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
o = uio->uio_offset & PGOFSET;
|
||||
c = min(uio->uio_resid, (int)(NBPG - o));
|
||||
error = uiomove((caddr_t)memhook + o, c, uio);
|
||||
pmap_remove(pmap_kernel(), (vaddr_t)memhook,
|
||||
(vaddr_t)memhook + NBPG);
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
continue;
|
||||
|
||||
/* minor device 1 is kernel memory */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: sa11x0_io.c,v 1.5 2001/09/10 15:47:38 pooka Exp $ */
|
||||
/* $NetBSD: sa11x0_io.c,v 1.6 2001/09/10 21:19:36 chris Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1997 Mark Brinicombe.
|
||||
@ -173,7 +173,7 @@ sa11x0_bs_map(t, bpa, size, cacheable, bshp)
|
||||
else
|
||||
*pte &= ~PT_CACHEABLE;
|
||||
}
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
|
||||
return(0);
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: bus_dma.c,v 1.8 2001/05/26 21:27:07 chs Exp $ */
|
||||
/* $NetBSD: bus_dma.c,v 1.9 2001/09/10 21:19:14 chris Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
|
||||
@ -676,7 +676,7 @@ _bus_dmamem_map(t, segs, nsegs, size, kvap, flags)
|
||||
/* XXX Do something about COHERENT here. */
|
||||
}
|
||||
}
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
|
||||
return (0);
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: bus_space.c,v 1.8 2001/04/24 04:30:58 thorpej Exp $ */
|
||||
/* $NetBSD: bus_space.c,v 1.9 2001/09/10 21:19:13 chris Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1999, by UCHIYAMA Yasushi
|
||||
@ -25,7 +25,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
*/
|
||||
/* $NetBSD: bus_space.c,v 1.8 2001/04/24 04:30:58 thorpej Exp $ */
|
||||
/* $NetBSD: bus_space.c,v 1.9 2001/09/10 21:19:13 chris Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||
@ -125,7 +125,7 @@ hpcmips_init_bus_space_extent(t)
|
||||
for (; pa < endpa; pa += NBPG, va += NBPG) {
|
||||
pmap_kenter_pa(va, pa, VM_PROT_READ | VM_PROT_WRITE);
|
||||
}
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
}
|
||||
|
||||
t->t_extent = (void*)extent_create(t->t_name, t->t_base,
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.57 2001/07/03 02:37:06 enami Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.58 2001/09/10 21:19:14 chris Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1999 Shin Takemura, All rights reserved.
|
||||
@ -72,7 +72,7 @@
|
||||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.57 2001/07/03 02:37:06 enami Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.58 2001/09/10 21:19:14 chris Exp $");
|
||||
|
||||
/* from: Utah Hdr: machdep.c 1.63 91/04/24 */
|
||||
#include "opt_vr41xx.h"
|
||||
@ -610,7 +610,7 @@ cpu_startup()
|
||||
curbufsize -= PAGE_SIZE;
|
||||
}
|
||||
}
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
|
||||
/*
|
||||
* Allocate a submap for exec arguments. This map effectively
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: bus_machdep.c,v 1.10 2001/09/04 02:37:08 thorpej Exp $ */
|
||||
/* $NetBSD: bus_machdep.c,v 1.11 2001/09/10 21:19:15 chris Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
|
||||
@ -314,7 +314,7 @@ i386_mem_add_mapping(bpa, size, cacheable, bshp)
|
||||
pmap_update_pg(va);
|
||||
}
|
||||
}
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
|
||||
return 0;
|
||||
}
|
||||
@ -818,7 +818,7 @@ _bus_dmamem_map(t, segs, nsegs, size, kvap, flags)
|
||||
PMAP_WIRED | VM_PROT_READ | VM_PROT_WRITE);
|
||||
}
|
||||
}
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
|
||||
return (0);
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.455 2001/09/10 10:12:16 fvdl Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.456 2001/09/10 21:19:14 chris Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1996, 1997, 1998, 2000 The NetBSD Foundation, Inc.
|
||||
@ -313,7 +313,7 @@ cpu_startup()
|
||||
for (x = 0; x < btoc(MSGBUFSIZE); x++)
|
||||
pmap_kenter_pa((vaddr_t)msgbuf_vaddr + x * PAGE_SIZE,
|
||||
msgbuf_paddr + x * PAGE_SIZE, VM_PROT_READ|VM_PROT_WRITE);
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
|
||||
initmsgbuf((caddr_t)msgbuf_vaddr, round_page(MSGBUFSIZE));
|
||||
|
||||
@ -603,7 +603,7 @@ i386_bufinit()
|
||||
curbufsize -= PAGE_SIZE;
|
||||
}
|
||||
}
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
|
||||
/*
|
||||
* Set up buffers, so they can be used to read disk labels.
|
||||
@ -2703,7 +2703,7 @@ init386(first_avail)
|
||||
/* install page 2 (reserved above) as PT page for first 4M */
|
||||
pmap_enter(pmap_kernel(), (vaddr_t)vtopte(0), 2*PAGE_SIZE,
|
||||
VM_PROT_READ|VM_PROT_WRITE, PMAP_WIRED|VM_PROT_READ|VM_PROT_WRITE);
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
memset(vtopte(0), 0, PAGE_SIZE);/* make sure it is clean before using */
|
||||
|
||||
/*
|
||||
@ -2718,7 +2718,7 @@ init386(first_avail)
|
||||
pmap_kenter_pa((vaddr_t)BIOSTRAMP_BASE, /* virtual */
|
||||
(paddr_t)BIOSTRAMP_BASE, /* physical */
|
||||
VM_PROT_ALL); /* protection */
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
memcpy((caddr_t)BIOSTRAMP_BASE, biostramp_image, biostramp_image_size);
|
||||
#ifdef DEBUG_BIOSCALL
|
||||
printf("biostramp installed @ %x\n", BIOSTRAMP_BASE);
|
||||
@ -2727,12 +2727,12 @@ init386(first_avail)
|
||||
|
||||
pmap_enter(pmap_kernel(), idt_vaddr, idt_paddr,
|
||||
VM_PROT_READ|VM_PROT_WRITE, PMAP_WIRED|VM_PROT_READ|VM_PROT_WRITE);
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
idt = (union descriptor *)idt_vaddr;
|
||||
#ifdef I586_CPU
|
||||
pmap_enter(pmap_kernel(), pentium_idt_vaddr, idt_paddr,
|
||||
VM_PROT_READ, PMAP_WIRED|VM_PROT_READ);
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
pentium_idt = (union descriptor *)pentium_idt_vaddr;
|
||||
#endif
|
||||
gdt = idt + NIDT;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: mem.c,v 1.48 2001/04/24 04:30:58 thorpej Exp $ */
|
||||
/* $NetBSD: mem.c,v 1.49 2001/09/10 21:19:15 chris Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988 University of Utah.
|
||||
@ -142,13 +142,13 @@ mmrw(dev, uio, flags)
|
||||
VM_PROT_WRITE;
|
||||
pmap_enter(pmap_kernel(), (vaddr_t)vmmap,
|
||||
trunc_page(v), prot, PMAP_WIRED|prot);
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
o = uio->uio_offset & PGOFSET;
|
||||
c = min(uio->uio_resid, (int)(PAGE_SIZE - o));
|
||||
error = uiomove((caddr_t)vmmap + o, c, uio);
|
||||
pmap_remove(pmap_kernel(), (vaddr_t)vmmap,
|
||||
(vaddr_t)vmmap + PAGE_SIZE);
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
break;
|
||||
|
||||
/* minor device 1 is kernel memory */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: pmap.c,v 1.128 2001/07/05 20:54:28 hubertf Exp $ */
|
||||
/* $NetBSD: pmap.c,v 1.129 2001/09/10 21:19:15 chris Exp $ */
|
||||
|
||||
/*
|
||||
*
|
||||
@ -1106,7 +1106,7 @@ pmap_alloc_pvpage(pmap, mode)
|
||||
*/
|
||||
|
||||
pmap_kenter_pa(pv_cachedva, VM_PAGE_TO_PHYS(pg), VM_PROT_ALL);
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
pvpage = (struct pv_page *) pv_cachedva;
|
||||
pv_cachedva = 0;
|
||||
return (pmap_add_pvpage(pvpage, mode != ALLOCPV_NONEED));
|
||||
@ -1807,7 +1807,7 @@ pmap_map(va, spa, epa, prot)
|
||||
va += PAGE_SIZE;
|
||||
spa += PAGE_SIZE;
|
||||
}
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
return va;
|
||||
}
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: vm_machdep.c,v 1.100 2001/09/10 10:14:57 fvdl Exp $ */
|
||||
/* $NetBSD: vm_machdep.c,v 1.101 2001/09/10 21:19:15 chris Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1995 Charles M. Hannum. All rights reserved.
|
||||
@ -401,7 +401,7 @@ vmapbuf(bp, len)
|
||||
taddr += PAGE_SIZE;
|
||||
len -= PAGE_SIZE;
|
||||
}
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
}
|
||||
|
||||
/*
|
||||
@ -420,7 +420,7 @@ vunmapbuf(bp, len)
|
||||
off = (vaddr_t)bp->b_data - addr;
|
||||
len = round_page(off + len);
|
||||
pmap_kremove(addr, len);
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
uvm_km_free_wakeup(phys_map, addr, len);
|
||||
bp->b_data = bp->b_saveaddr;
|
||||
bp->b_saveaddr = 0;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: pmap.h,v 1.59 2001/08/12 00:20:32 chs Exp $ */
|
||||
/* $NetBSD: pmap.h,v 1.60 2001/09/10 21:19:14 chris Exp $ */
|
||||
|
||||
/*
|
||||
*
|
||||
@ -333,7 +333,7 @@ extern int pmap_pg_g; /* do we support PG_G? */
|
||||
#define pmap_kernel() (&kernel_pmap_store)
|
||||
#define pmap_resident_count(pmap) ((pmap)->pm_stats.resident_count)
|
||||
#define pmap_wired_count(pmap) ((pmap)->pm_stats.wired_count)
|
||||
#define pmap_update() /* nothing (yet) */
|
||||
#define pmap_update(pmap) /* nothing (yet) */
|
||||
|
||||
#define pmap_clear_modify(pg) pmap_change_attrs(pg, 0, PG_M)
|
||||
#define pmap_clear_reference(pg) pmap_change_attrs(pg, 0, PG_U)
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: pnpbios.c,v 1.23 2001/07/07 05:58:12 perry Exp $ */
|
||||
/* $NetBSD: pnpbios.c,v 1.24 2001/09/10 21:19:15 chris Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2000 Jason R. Thorpe. All rights reserved.
|
||||
@ -275,7 +275,7 @@ pnpbios_mapit(addr, len, prot)
|
||||
return (0);
|
||||
for (; pa < endpa; pa += NBPG, va += NBPG)
|
||||
pmap_kenter_pa(va, pa, prot);
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
|
||||
return ((caddr_t)(startva + (addr - startpa)));
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: pmap.h,v 1.6 2001/05/26 21:27:08 chs Exp $ */
|
||||
/* $NetBSD: pmap.h,v 1.7 2001/09/10 21:19:31 chris Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1987 Carnegie-Mellon University
|
||||
@ -138,7 +138,7 @@ extern struct pv_entry *pv_table; /* array of entries, one per page */
|
||||
#define pmap_resident_count(pmap) ((pmap)->pm_stats.resident_count)
|
||||
#define pmap_wired_count(pmap) ((pmap)->pm_stats.wired_count)
|
||||
|
||||
#define pmap_update() /* nothing (yet) */
|
||||
#define pmap_update(pmap) /* nothing (yet) */
|
||||
|
||||
extern pt_entry_t *Sysmap;
|
||||
extern char *vmmap; /* map for mem, dumps, etc. */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.18 2001/08/25 21:14:44 chs Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.19 2001/09/10 21:19:32 chris Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2000 The NetBSD Foundation, Inc.
|
||||
@ -38,7 +38,7 @@
|
||||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.18 2001/08/25 21:14:44 chs Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.19 2001/09/10 21:19:32 chris Exp $");
|
||||
|
||||
#include "opt_ddb.h"
|
||||
#include "opt_kgdb.h"
|
||||
@ -177,7 +177,7 @@ luna68k_init()
|
||||
pmap_enter(pmap_kernel(), (vaddr_t)msgbufaddr + i * NBPG,
|
||||
avail_end + i * NBPG, VM_PROT_READ|VM_PROT_WRITE,
|
||||
VM_PROT_READ|VM_PROT_WRITE|PMAP_WIRED);
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
initmsgbuf(msgbufaddr, m68k_round_page(MSGBUFSIZE));
|
||||
|
||||
|
||||
@ -315,7 +315,7 @@ cpu_startup()
|
||||
curbufsize -= PAGE_SIZE;
|
||||
}
|
||||
}
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
|
||||
/*
|
||||
* Allocate a submap for exec arguments. This map effectively
|
||||
@ -739,7 +739,7 @@ dumpsys()
|
||||
pmap_enter(pmap_kernel(), (vaddr_t)vmmap, maddr,
|
||||
VM_PROT_READ, VM_PROT_READ|PMAP_WIRED);
|
||||
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
error = (*dump)(dumpdev, blkno, vmmap, NBPG);
|
||||
bad:
|
||||
switch (error) {
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* $NetBSD: mem.c,v 1.4 2001/04/24 04:31:00 thorpej Exp $ */
|
||||
/* $NetBSD: mem.c,v 1.4 2001/04/24 04:31:00 thorpej Exp $ */
|
||||
/* $NetBSD: mem.c,v 1.5 2001/09/10 21:19:32 chris Exp $ */
|
||||
/* $NetBSD: mem.c,v 1.5 2001/09/10 21:19:32 chris Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988 University of Utah.
|
||||
@ -43,7 +43,7 @@
|
||||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: mem.c,v 1.4 2001/04/24 04:31:00 thorpej Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: mem.c,v 1.5 2001/09/10 21:19:32 chris Exp $");
|
||||
|
||||
/*
|
||||
* Memory special file
|
||||
@ -140,13 +140,13 @@ mmrw(dev, uio, flags)
|
||||
VM_PROT_WRITE;
|
||||
pmap_enter(pmap_kernel(), (vaddr_t)vmmap,
|
||||
trunc_page(v), prot, prot|PMAP_WIRED);
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
o = uio->uio_offset & PGOFSET;
|
||||
c = min(uio->uio_resid, (int)(NBPG - o));
|
||||
error = uiomove((caddr_t)vmmap + o, c, uio);
|
||||
pmap_remove(pmap_kernel(), (vaddr_t)vmmap,
|
||||
(vaddr_t)vmmap + NBPG);
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
continue;
|
||||
|
||||
/* minor device 1 is kernel memory */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: pmap.c,v 1.15 2001/08/17 06:39:53 chs Exp $ */
|
||||
/* $NetBSD: pmap.c,v 1.16 2001/09/10 21:19:32 chris Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1999, 2000 The NetBSD Foundation, Inc.
|
||||
@ -684,7 +684,7 @@ pmap_map(va, spa, epa, prot)
|
||||
va += NBPG;
|
||||
spa += NBPG;
|
||||
}
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
return (va);
|
||||
}
|
||||
|
||||
@ -1535,7 +1535,7 @@ pmap_collect(pmap)
|
||||
* all necessary locking.
|
||||
*/
|
||||
pmap_remove(pmap, VM_MIN_ADDRESS, VM_MAX_ADDRESS);
|
||||
pmap_update();
|
||||
pmap_update(pmap);
|
||||
}
|
||||
|
||||
#ifdef notyet
|
||||
@ -2335,7 +2335,7 @@ pmap_enter_ptpage(pmap, va)
|
||||
bzero((caddr_t)kpt->kpt_va, NBPG);
|
||||
pmap_enter(pmap, va, ptpa, VM_PROT_READ | VM_PROT_WRITE,
|
||||
VM_PROT_READ | VM_PROT_WRITE | PMAP_WIRED);
|
||||
pmap_update();
|
||||
pmap_update(pmap);
|
||||
#ifdef DEBUG
|
||||
if (pmapdebug & (PDB_ENTER|PDB_PTPAGE)) {
|
||||
int ix = pmap_ste(pmap, va) - pmap_ste(pmap, 0);
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: trap.c,v 1.17 2001/06/02 18:09:14 chs Exp $ */
|
||||
/* $NetBSD: trap.c,v 1.18 2001/09/10 21:19:32 chris Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988 University of Utah.
|
||||
@ -44,7 +44,7 @@
|
||||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.17 2001/06/02 18:09:14 chs Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.18 2001/09/10 21:19:32 chris Exp $");
|
||||
|
||||
#include "opt_ddb.h"
|
||||
#include "opt_kgdb.h"
|
||||
@ -669,14 +669,14 @@ writeback(fp, docachepush)
|
||||
pmap_enter(pmap_kernel(), (vaddr_t)vmmap,
|
||||
trunc_page(f->f_fa), VM_PROT_WRITE,
|
||||
VM_PROT_WRITE|PMAP_WIRED);
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
fa = (u_int)&vmmap[(f->f_fa & PGOFSET) & ~0xF];
|
||||
bcopy((caddr_t)&f->f_pd0, (caddr_t)fa, 16);
|
||||
(void) pmap_extract(pmap_kernel(), (vaddr_t)fa, &pa);
|
||||
DCFL_40(pa);
|
||||
pmap_remove(pmap_kernel(), (vaddr_t)vmmap,
|
||||
(vaddr_t)&vmmap[NBPG]);
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
} else
|
||||
printf("WARNING: pid %d(%s) uid %d: CPUSH not done\n",
|
||||
p->p_pid, p->p_comm, p->p_ucred->cr_uid);
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* $NetBSD: vm_machdep.c,v 1.9 2001/08/19 18:09:21 chs Exp $ */
|
||||
/* $NetBSD: vm_machdep.c,v 1.9 2001/08/19 18:09:21 chs Exp $ */
|
||||
/* $NetBSD: vm_machdep.c,v 1.10 2001/09/10 21:19:32 chris Exp $ */
|
||||
/* $NetBSD: vm_machdep.c,v 1.10 2001/09/10 21:19:32 chris Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988 University of Utah.
|
||||
@ -44,7 +44,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.9 2001/08/19 18:09:21 chs Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.10 2001/09/10 21:19:32 chris Exp $");
|
||||
|
||||
#include "opt_compat_hpux.h"
|
||||
|
||||
@ -242,7 +242,7 @@ pagemove(from, to, size)
|
||||
to += PAGE_SIZE;
|
||||
size -= PAGE_SIZE;
|
||||
}
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
}
|
||||
|
||||
/*
|
||||
@ -330,7 +330,7 @@ vmapbuf(bp, len)
|
||||
kva += PAGE_SIZE;
|
||||
len -= PAGE_SIZE;
|
||||
} while (len);
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
}
|
||||
|
||||
/*
|
||||
@ -351,7 +351,7 @@ vunmapbuf(bp, len)
|
||||
off = (vaddr_t)bp->b_data - kva;
|
||||
len = m68k_round_page(off + len);
|
||||
pmap_kremove(kva, len);
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
uvm_km_free_wakeup(phys_map, kva, len);
|
||||
bp->b_data = bp->b_saveaddr;
|
||||
bp->b_saveaddr = 0;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: mappedcopy.c,v 1.14 2001/07/28 13:08:34 tsutsui Exp $ */
|
||||
/* $NetBSD: mappedcopy.c,v 1.15 2001/09/10 21:19:16 chris Exp $ */
|
||||
|
||||
/*
|
||||
* XXX This doesn't work yet. Soon. --thorpej@netbsd.org
|
||||
@ -118,7 +118,7 @@ mappedcopyin(f, t, count)
|
||||
len = min(count, (PAGE_SIZE - off));
|
||||
pmap_enter(pmap_kernel(), kva, upa,
|
||||
VM_PROT_READ, VM_PROT_READ | PMAP_WIRED);
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
if (len == PAGE_SIZE && alignable && off == 0)
|
||||
copypage((caddr_t)kva, top);
|
||||
else
|
||||
@ -129,7 +129,7 @@ mappedcopyin(f, t, count)
|
||||
off = 0;
|
||||
}
|
||||
pmap_remove(pmap_kernel(), kva, kva + PAGE_SIZE);
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
return (0);
|
||||
#undef CADDR1
|
||||
}
|
||||
@ -178,7 +178,7 @@ mappedcopyout(f, t, count)
|
||||
pmap_enter(pmap_kernel(), kva, upa,
|
||||
VM_PROT_READ|VM_PROT_WRITE,
|
||||
VM_PROT_READ|VM_PROT_WRITE|PMAP_WIRED);
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
if (len == PAGE_SIZE && alignable && off == 0)
|
||||
copypage(fromp, (caddr_t)kva);
|
||||
else
|
||||
@ -189,7 +189,7 @@ mappedcopyout(f, t, count)
|
||||
off = 0;
|
||||
}
|
||||
pmap_remove(pmap_kernel(), kva, kva + PAGE_SIZE);
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
return (0);
|
||||
#undef CADDR2
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: pmap.h,v 1.32 2001/05/26 21:27:08 chs Exp $ */
|
||||
/* $NetBSD: pmap.h,v 1.33 2001/09/10 21:19:16 chris Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1987 Carnegie-Mellon University
|
||||
@ -181,7 +181,7 @@ extern struct pv_entry *pv_table; /* array of entries, one per page */
|
||||
#define pmap_resident_count(pmap) ((pmap)->pm_stats.resident_count)
|
||||
#define pmap_wired_count(pmap) ((pmap)->pm_stats.wired_count)
|
||||
|
||||
#define pmap_update() /* nothing (yet) */
|
||||
#define pmap_update(pmap) /* nothing (yet) */
|
||||
|
||||
extern pt_entry_t *Sysmap;
|
||||
extern char *vmmap; /* map for mem, dumps, etc. */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: bus_space.c,v 1.15 2001/04/24 04:31:01 thorpej Exp $ */
|
||||
/* $NetBSD: bus_space.c,v 1.16 2001/09/10 21:19:16 chris Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
|
||||
@ -133,7 +133,7 @@ bus_mem_add_mapping(bus_addr_t bpa, bus_size_t size, int flags,
|
||||
*pte |= PG_CI;
|
||||
TBIS(va);
|
||||
}
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.264 2001/06/02 18:09:14 chs Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.265 2001/09/10 21:19:16 chris Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988 University of Utah.
|
||||
@ -287,7 +287,7 @@ mac68k_init()
|
||||
high[numranges - 1] + i * NBPG, VM_PROT_READ|VM_PROT_WRITE,
|
||||
VM_PROT_READ|VM_PROT_WRITE|PMAP_WIRED);
|
||||
initmsgbuf(msgbufaddr, m68k_round_page(MSGBUFSIZE));
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
}
|
||||
|
||||
/*
|
||||
@ -457,7 +457,7 @@ cpu_startup(void)
|
||||
curbufsize -= PAGE_SIZE;
|
||||
}
|
||||
}
|
||||
pmap_update();
|
||||
pmap_update(kernel_map->pmap);
|
||||
|
||||
/*
|
||||
* Allocate a submap for exec arguments. This map effectively
|
||||
@ -649,7 +649,7 @@ cpu_reboot(howto, bootstr)
|
||||
/* Map the last physical page VA = PA for doboot() */
|
||||
pmap_enter(pmap_kernel(), (vaddr_t)maxaddr, (vaddr_t)maxaddr,
|
||||
VM_PROT_ALL, VM_PROT_ALL|PMAP_WIRED);
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
|
||||
printf("rebooting...\n");
|
||||
DELAY(1000000);
|
||||
@ -877,7 +877,7 @@ dumpsys()
|
||||
}
|
||||
pmap_enter(pmap_kernel(), (vaddr_t)vmmap, maddr,
|
||||
VM_PROT_READ, VM_PROT_READ|PMAP_WIRED);
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
|
||||
error = (*dump)(dumpdev, blkno, vmmap, NBPG);
|
||||
bad:
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: mem.c,v 1.28 2001/04/24 04:31:02 thorpej Exp $ */
|
||||
/* $NetBSD: mem.c,v 1.29 2001/09/10 21:19:17 chris Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988 University of Utah.
|
||||
@ -137,13 +137,13 @@ mmrw(dev, uio, flags)
|
||||
VM_PROT_WRITE;
|
||||
pmap_enter(pmap_kernel(), (vaddr_t)vmmap,
|
||||
trunc_page(v), prot, prot|PMAP_WIRED);
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
o = m68k_page_offset(uio->uio_offset);
|
||||
c = min(uio->uio_resid, (int)(NBPG - o));
|
||||
error = uiomove((caddr_t)vmmap + o, c, uio);
|
||||
pmap_remove(pmap_kernel(), (vaddr_t)vmmap,
|
||||
(vaddr_t)vmmap + NBPG);
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
continue;
|
||||
|
||||
/* minor device 1 is kernel memory */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: pmap.c,v 1.78 2001/08/04 18:42:39 chs Exp $ */
|
||||
/* $NetBSD: pmap.c,v 1.79 2001/09/10 21:19:17 chris Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1999 The NetBSD Foundation, Inc.
|
||||
@ -704,7 +704,7 @@ pmap_map(va, spa, epa, prot)
|
||||
va += NBPG;
|
||||
spa += NBPG;
|
||||
}
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
return (va);
|
||||
}
|
||||
|
||||
@ -1563,7 +1563,7 @@ pmap_collect(pmap)
|
||||
* all necessary locking.
|
||||
*/
|
||||
pmap_do_remove(pmap, VM_MIN_ADDRESS, VM_MAX_ADDRESS, 0);
|
||||
pmap_update();
|
||||
pmap_update(pmap);
|
||||
}
|
||||
|
||||
#ifdef notyet
|
||||
@ -2359,7 +2359,7 @@ pmap_enter_ptpage(pmap, va)
|
||||
bzero((caddr_t)kpt->kpt_va, NBPG);
|
||||
pmap_enter(pmap, va, ptpa, VM_PROT_READ | VM_PROT_WRITE,
|
||||
VM_PROT_READ | VM_PROT_WRITE | PMAP_WIRED);
|
||||
pmap_update();
|
||||
pmap_update(pmap);
|
||||
#ifdef DEBUG
|
||||
if (pmapdebug & (PDB_ENTER|PDB_PTPAGE)) {
|
||||
int ix = pmap_ste(pmap, va) - pmap_ste(pmap, 0);
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: trap.c,v 1.95 2001/06/02 18:09:15 chs Exp $ */
|
||||
/* $NetBSD: trap.c,v 1.96 2001/09/10 21:19:17 chris Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988 University of Utah.
|
||||
@ -715,14 +715,14 @@ writeback(fp, docachepush)
|
||||
pmap_enter(pmap_kernel(), (vaddr_t)vmmap,
|
||||
trunc_page(f->f_fa), VM_PROT_WRITE,
|
||||
VM_PROT_WRITE|PMAP_WIRED);
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
fa = (u_int)&vmmap[m68k_page_offset(f->f_fa) & ~0xF];
|
||||
bcopy((caddr_t)&f->f_pd0, (caddr_t)fa, 16);
|
||||
(void) pmap_extract(pmap_kernel(), (vaddr_t)fa, &pa);
|
||||
DCFL(pa);
|
||||
pmap_remove(pmap_kernel(), (vaddr_t)vmmap,
|
||||
(vaddr_t)&vmmap[NBPG]);
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
} else
|
||||
printf("WARNING: pid %d(%s) uid %d: CPUSH not done\n",
|
||||
p->p_pid, p->p_comm, p->p_ucred->cr_uid);
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: vm_machdep.c,v 1.52 2001/08/23 06:18:47 chs Exp $ */
|
||||
/* $NetBSD: vm_machdep.c,v 1.53 2001/09/10 21:19:17 chris Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988 University of Utah.
|
||||
@ -229,7 +229,7 @@ pagemove(from, to, size)
|
||||
to += PAGE_SIZE;
|
||||
size -= PAGE_SIZE;
|
||||
}
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
}
|
||||
|
||||
/*
|
||||
@ -317,7 +317,7 @@ vmapbuf(bp, len)
|
||||
kva += PAGE_SIZE;
|
||||
len -= PAGE_SIZE;
|
||||
} while (len);
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
}
|
||||
|
||||
/*
|
||||
@ -338,7 +338,7 @@ vunmapbuf(bp, len)
|
||||
off = (vaddr_t)bp->b_data - kva;
|
||||
len = m68k_round_page(off + len);
|
||||
pmap_kremove(kva, len);
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
uvm_km_free_wakeup(phys_map, kva, len);
|
||||
bp->b_data = bp->b_saveaddr;
|
||||
bp->b_saveaddr = 0;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: bus_dma.c,v 1.21 2001/07/22 11:29:47 wiz Exp $ */
|
||||
/* $NetBSD: bus_dma.c,v 1.22 2001/09/10 21:19:17 chris Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
|
||||
@ -545,7 +545,7 @@ _bus_dmamem_map(t, segs, nsegs, size, kvap, flags)
|
||||
pmap_kenter_pa(va, addr, VM_PROT_READ | VM_PROT_WRITE);
|
||||
}
|
||||
}
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
|
||||
return (0);
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.103 2001/08/26 02:47:37 matt Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.104 2001/09/10 21:19:17 chris Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (C) 1995, 1996 Wolfgang Solfrank.
|
||||
@ -400,7 +400,7 @@ restore_ofmap(ofmap, len)
|
||||
len -= NBPG;
|
||||
}
|
||||
}
|
||||
pmap_update();
|
||||
pmap_update(&ofw_pmap);
|
||||
}
|
||||
|
||||
/*
|
||||
@ -502,7 +502,7 @@ cpu_startup()
|
||||
curbufsize -= PAGE_SIZE;
|
||||
}
|
||||
}
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
|
||||
/*
|
||||
* Allocate a submap for exec arguments. This map effectively
|
||||
@ -761,7 +761,7 @@ mapiodev(pa, len)
|
||||
faddr += NBPG;
|
||||
taddr += NBPG;
|
||||
}
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
return (void *)(va + off);
|
||||
}
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: pmap.h,v 1.36 2001/08/04 04:26:48 chs Exp $ */
|
||||
/* $NetBSD: pmap.h,v 1.37 2001/09/10 21:19:18 chris Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1987 Carnegie-Mellon University
|
||||
@ -116,7 +116,7 @@ extern struct pmap kernel_pmap_store;
|
||||
#define pmap_wired_count(pmap) ((pmap)->pm_stats.wired_count)
|
||||
#define pmap_resident_count(pmap) ((pmap)->pm_stats.resident_count)
|
||||
|
||||
#define pmap_update() /* nothing (yet) */
|
||||
#define pmap_update(pmap) /* nothing (yet) */
|
||||
|
||||
/*
|
||||
* Bootstrap the system enough to run with virtual memory.
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: pmap.c,v 1.133 2001/09/09 19:48:12 chs Exp $ */
|
||||
/* $NetBSD: pmap.c,v 1.134 2001/09/10 21:19:18 chris Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998, 2001 The NetBSD Foundation, Inc.
|
||||
@ -78,7 +78,7 @@
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.133 2001/09/09 19:48:12 chs Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.134 2001/09/10 21:19:18 chris Exp $");
|
||||
|
||||
/*
|
||||
* Manages physical address maps.
|
||||
@ -823,7 +823,7 @@ pmap_page_protect(pg, prot)
|
||||
va = pv->pv_va;
|
||||
pmap_protect(pv->pv_pmap, va, va + PAGE_SIZE,
|
||||
prot);
|
||||
pmap_update();
|
||||
pmap_update(pv->pv_pmap);
|
||||
}
|
||||
}
|
||||
break;
|
||||
@ -835,7 +835,7 @@ pmap_page_protect(pg, prot)
|
||||
pmap_remove(pv->pv_pmap, pv->pv_va,
|
||||
pv->pv_va + PAGE_SIZE);
|
||||
}
|
||||
pmap_update();
|
||||
pmap_update(pv->pv_pmap);
|
||||
}
|
||||
}
|
||||
|
||||
@ -1870,7 +1870,7 @@ again:
|
||||
mips_indexof(va)) {
|
||||
pmap_remove(npv->pv_pmap, npv->pv_va,
|
||||
npv->pv_va + PAGE_SIZE);
|
||||
pmap_update();
|
||||
pmap_update(npv->pv_pmap);
|
||||
goto again;
|
||||
}
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: vm_machdep.c,v 1.82 2001/08/19 18:09:22 chs Exp $ */
|
||||
/* $NetBSD: vm_machdep.c,v 1.83 2001/09/10 21:19:18 chris Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988 University of Utah.
|
||||
@ -45,7 +45,7 @@
|
||||
#include "opt_ddb.h"
|
||||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.82 2001/08/19 18:09:22 chs Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.83 2001/09/10 21:19:18 chris Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
@ -313,7 +313,7 @@ vmapbuf(bp, len)
|
||||
faddr += PAGE_SIZE;
|
||||
taddr += PAGE_SIZE;
|
||||
}
|
||||
pmap_update();
|
||||
pmap_update(vm_map_pmap(phys_map));
|
||||
}
|
||||
|
||||
/*
|
||||
@ -332,7 +332,7 @@ vunmapbuf(bp, len)
|
||||
off = (vaddr_t)bp->b_data - addr;
|
||||
len = round_page(off + len);
|
||||
pmap_remove(pmap_kernel(), addr, addr + len);
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
uvm_km_free_wakeup(phys_map, addr, len);
|
||||
bp->b_data = bp->b_saveaddr;
|
||||
bp->b_saveaddr = NULL;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: bus_dma.c,v 1.4 2001/07/08 04:25:36 wdk Exp $ */
|
||||
/* $NetBSD: bus_dma.c,v 1.5 2001/09/10 21:19:36 chris Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
|
||||
@ -809,7 +809,7 @@ _bus_dmamem_map(t, segs, nsegs, size, kvap, flags)
|
||||
/* XXX Do something about COHERENT here. */
|
||||
}
|
||||
}
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
|
||||
return (0);
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.28 2001/07/08 04:25:36 wdk Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.29 2001/09/10 21:19:36 chris Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988 University of Utah.
|
||||
@ -43,7 +43,7 @@
|
||||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.28 2001/07/08 04:25:36 wdk Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.29 2001/09/10 21:19:36 chris Exp $");
|
||||
|
||||
/* from: Utah Hdr: machdep.c 1.63 91/04/24 */
|
||||
|
||||
@ -448,7 +448,7 @@ cpu_startup()
|
||||
curbufsize -= PAGE_SIZE;
|
||||
}
|
||||
}
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
|
||||
/*
|
||||
* Allocate a submap for exec arguments. This map effectively
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: pmap.h,v 1.23 2001/05/26 21:27:10 chs Exp $ */
|
||||
/* $NetBSD: pmap.h,v 1.24 2001/09/10 21:19:19 chris Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1987 Carnegie-Mellon University
|
||||
@ -142,7 +142,7 @@ extern struct pv_entry *pv_table; /* array of entries, one per page */
|
||||
#define pmap_resident_count(pmap) ((pmap)->pm_stats.resident_count)
|
||||
#define pmap_wired_count(pmap) ((pmap)->pm_stats.wired_count)
|
||||
|
||||
#define pmap_update() /* nothing (yet) */
|
||||
#define pmap_update(pmap) /* nothing (yet) */
|
||||
|
||||
extern pt_entry_t *Sysmap;
|
||||
extern char *vmmap; /* map for mem, dumps, etc. */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: bus_dma.c,v 1.18 2001/08/12 18:13:45 scw Exp $ */
|
||||
/* $NetBSD: bus_dma.c,v 1.19 2001/09/10 21:19:20 chris Exp $ */
|
||||
|
||||
/*
|
||||
* This file was taken from from next68k/dev/bus_dma.c, which was originally
|
||||
@ -46,7 +46,7 @@
|
||||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: bus_dma.c,v 1.18 2001/08/12 18:13:45 scw Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: bus_dma.c,v 1.19 2001/09/10 21:19:20 chris Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
@ -779,7 +779,7 @@ _bus_dmamem_map(t, segs, nsegs, size, kvap, flags)
|
||||
segs[curseg]._ds_flags |= (flags & BUS_DMA_COHERENT);
|
||||
}
|
||||
}
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
|
||||
if ( (flags & BUS_DMA_COHERENT) != 0 )
|
||||
TBIAS();
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.85 2001/08/12 18:33:13 scw Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.86 2001/09/10 21:19:19 chris Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988 University of Utah.
|
||||
@ -281,7 +281,7 @@ mvme68k_init()
|
||||
msgbufpa + i * NBPG, VM_PROT_READ|VM_PROT_WRITE,
|
||||
VM_PROT_READ|VM_PROT_WRITE|PMAP_WIRED);
|
||||
initmsgbuf(msgbufaddr, round_page(MSGBUFSIZE));
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
}
|
||||
|
||||
#ifdef MVME147
|
||||
@ -518,7 +518,7 @@ cpu_startup()
|
||||
curbufsize -= PAGE_SIZE;
|
||||
}
|
||||
}
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
|
||||
/*
|
||||
* Allocate a submap for exec arguments. This map effectively
|
||||
@ -1077,7 +1077,7 @@ dumpsys()
|
||||
|
||||
pmap_enter(pmap_kernel(), (vaddr_t)vmmap, maddr,
|
||||
VM_PROT_READ, VM_PROT_READ|PMAP_WIRED);
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
|
||||
error = (*dump)(dumpdev, blkno, vmmap, n);
|
||||
if (error)
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: mem.c,v 1.16 2001/04/24 04:31:04 thorpej Exp $ */
|
||||
/* $NetBSD: mem.c,v 1.17 2001/09/10 21:19:19 chris Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988 University of Utah.
|
||||
@ -134,13 +134,13 @@ mmrw(dev, uio, flags)
|
||||
VM_PROT_WRITE;
|
||||
pmap_enter(pmap_kernel(), (vaddr_t)vmmap,
|
||||
trunc_page(v), prot, prot|PMAP_WIRED);
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
o = uio->uio_offset & PGOFSET;
|
||||
c = min(uio->uio_resid, (int)(NBPG - o));
|
||||
error = uiomove((caddr_t)vmmap + o, c, uio);
|
||||
pmap_remove(pmap_kernel(), (vaddr_t)vmmap,
|
||||
(vaddr_t)vmmap + NBPG);
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
continue;
|
||||
|
||||
/* minor device 1 is kernel memory */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: pmap.c,v 1.69 2001/08/26 16:22:20 tsutsui Exp $ */
|
||||
/* $NetBSD: pmap.c,v 1.70 2001/09/10 21:19:19 chris Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1999 The NetBSD Foundation, Inc.
|
||||
@ -727,7 +727,7 @@ pmap_map(va, spa, epa, prot)
|
||||
va += NBPG;
|
||||
spa += NBPG;
|
||||
}
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
return (va);
|
||||
}
|
||||
|
||||
@ -1583,7 +1583,7 @@ pmap_collect(pmap)
|
||||
* all necessary locking.
|
||||
*/
|
||||
pmap_do_remove(pmap, VM_MIN_ADDRESS, VM_MAX_ADDRESS, 0);
|
||||
pmap_update();
|
||||
pmap_update(pmap);
|
||||
}
|
||||
|
||||
#ifdef notyet
|
||||
@ -2496,7 +2496,7 @@ pmap_enter_ptpage(pmap, va)
|
||||
memset((caddr_t)kpt->kpt_va, 0, NBPG);
|
||||
pmap_enter(pmap, va, ptpa, VM_PROT_READ | VM_PROT_WRITE,
|
||||
VM_PROT_READ | VM_PROT_WRITE | PMAP_WIRED);
|
||||
pmap_update();
|
||||
pmap_update(pmap);
|
||||
#ifdef DEBUG
|
||||
if (pmapdebug & (PDB_ENTER|PDB_PTPAGE)) {
|
||||
int ix = pmap_ste(pmap, va) - pmap_ste(pmap, 0);
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: trap.c,v 1.60 2001/07/07 07:51:39 scw Exp $ */
|
||||
/* $NetBSD: trap.c,v 1.61 2001/09/10 21:19:19 chris Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988 University of Utah.
|
||||
@ -775,14 +775,14 @@ writeback(fp, docachepush)
|
||||
pmap_enter(pmap_kernel(), (vaddr_t)vmmap,
|
||||
trunc_page(f->f_fa), VM_PROT_WRITE,
|
||||
VM_PROT_WRITE|PMAP_WIRED);
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
fa = (u_int)&vmmap[(f->f_fa & PGOFSET) & ~0xF];
|
||||
fastcopy16(&f->f_pd0, (u_int *)fa);
|
||||
(void) pmap_extract(pmap_kernel(), (vaddr_t)fa, &pa);
|
||||
DCFL_40(pa);
|
||||
pmap_remove(pmap_kernel(), (vaddr_t)vmmap,
|
||||
(vaddr_t)&vmmap[NBPG]);
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
} else
|
||||
printf("WARNING: pid %d(%s) uid %d: CPUSH not done\n",
|
||||
p->p_pid, p->p_comm, p->p_ucred->cr_uid);
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: vm_machdep.c,v 1.41 2001/08/19 18:09:22 chs Exp $ */
|
||||
/* $NetBSD: vm_machdep.c,v 1.42 2001/09/10 21:19:19 chris Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988 University of Utah.
|
||||
@ -230,7 +230,7 @@ pagemove(from, to, size)
|
||||
to += PAGE_SIZE;
|
||||
size -= PAGE_SIZE;
|
||||
}
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
}
|
||||
|
||||
/*
|
||||
@ -283,7 +283,7 @@ vmapbuf(bp, len)
|
||||
kva += PAGE_SIZE;
|
||||
len -= PAGE_SIZE;
|
||||
} while (len);
|
||||
pmap_update();
|
||||
pmap_update(kpmap);
|
||||
}
|
||||
|
||||
/*
|
||||
@ -304,7 +304,7 @@ vunmapbuf(bp, len)
|
||||
off = (vaddr_t)bp->b_data - kva;
|
||||
len = m68k_round_page(off + len);
|
||||
pmap_kremove(kva, len);
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
uvm_km_free_wakeup(phys_map, kva, len);
|
||||
bp->b_data = bp->b_saveaddr;
|
||||
bp->b_saveaddr = 0;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: pmap.h,v 1.9 2001/05/26 21:27:11 chs Exp $ */
|
||||
/* $NetBSD: pmap.h,v 1.10 2001/09/10 21:19:33 chris Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1987 Carnegie-Mellon University
|
||||
@ -137,7 +137,7 @@ extern struct pv_entry *pv_table; /* array of entries, one per page */
|
||||
#define pmap_resident_count(pmap) ((pmap)->pm_stats.resident_count)
|
||||
#define pmap_wired_count(pmap) ((pmap)->pm_stats.wired_count)
|
||||
|
||||
#define pmap_update() /* nothing (yet) */
|
||||
#define pmap_update(pmap) /* nothing (yet) */
|
||||
|
||||
extern pt_entry_t *Sysmap;
|
||||
extern char *vmmap; /* map for mem, dumps, etc. */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.25 2001/07/25 15:48:09 tsutsui Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.26 2001/09/10 21:19:33 chris Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988 University of Utah.
|
||||
@ -196,7 +196,7 @@ news68k_init()
|
||||
pmap_enter(pmap_kernel(), (vaddr_t)msgbufaddr + i * NBPG,
|
||||
avail_end + i * NBPG, VM_PROT_READ|VM_PROT_WRITE,
|
||||
VM_PROT_READ|VM_PROT_WRITE|PMAP_WIRED);
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
initmsgbuf(msgbufaddr, m68k_round_page(MSGBUFSIZE));
|
||||
}
|
||||
|
||||
@ -281,7 +281,7 @@ cpu_startup()
|
||||
curbufsize -= PAGE_SIZE;
|
||||
}
|
||||
}
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
|
||||
/*
|
||||
* Allocate a submap for exec arguments. This map effectively
|
||||
@ -698,7 +698,7 @@ dumpsys()
|
||||
pmap_enter(pmap_kernel(), (vaddr_t)vmmap, maddr,
|
||||
VM_PROT_READ, VM_PROT_READ|PMAP_WIRED);
|
||||
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
error = (*dump)(dumpdev, blkno, vmmap, NBPG);
|
||||
bad:
|
||||
switch (error) {
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: mem.c,v 1.7 2001/07/07 06:24:00 tsutsui Exp $ */
|
||||
/* $NetBSD: mem.c,v 1.8 2001/09/10 21:19:33 chris Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988 University of Utah.
|
||||
@ -136,13 +136,13 @@ mmrw(dev, uio, flags)
|
||||
VM_PROT_WRITE;
|
||||
pmap_enter(pmap_kernel(), (vaddr_t)vmmap,
|
||||
trunc_page(v), prot, prot|PMAP_WIRED);
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
o = m68k_page_offset(uio->uio_offset);
|
||||
c = min(uio->uio_resid, (int)(NBPG - o));
|
||||
error = uiomove((caddr_t)vmmap + o, c, uio);
|
||||
pmap_remove(pmap_kernel(), (vaddr_t)vmmap,
|
||||
(vaddr_t)vmmap + NBPG);
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
continue;
|
||||
|
||||
/* minor device 1 is kernel memory */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: pmap.c,v 1.20 2001/08/26 16:22:21 tsutsui Exp $ */
|
||||
/* $NetBSD: pmap.c,v 1.21 2001/09/10 21:19:33 chris Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1999 The NetBSD Foundation, Inc.
|
||||
@ -706,7 +706,7 @@ pmap_map(va, spa, epa, prot)
|
||||
va += NBPG;
|
||||
spa += NBPG;
|
||||
}
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
return (va);
|
||||
}
|
||||
|
||||
@ -1702,7 +1702,7 @@ pmap_collect(pmap)
|
||||
* all necessary locking.
|
||||
*/
|
||||
pmap_remove(pmap, VM_MIN_ADDRESS, VM_MAX_ADDRESS);
|
||||
pmap_update();
|
||||
pmap_update(pmap);
|
||||
}
|
||||
|
||||
#ifdef notyet
|
||||
@ -2674,7 +2674,7 @@ pmap_enter_ptpage(pmap, va)
|
||||
memset((caddr_t)kpt->kpt_va, 0, NBPG);
|
||||
pmap_enter(pmap, va, ptpa, VM_PROT_READ | VM_PROT_WRITE,
|
||||
VM_PROT_READ | VM_PROT_WRITE | PMAP_WIRED);
|
||||
pmap_update();
|
||||
pmap_update(pmap);
|
||||
#ifdef DEBUG
|
||||
if (pmapdebug & (PDB_ENTER|PDB_PTPAGE)) {
|
||||
int ix = pmap_ste(pmap, va) - pmap_ste(pmap, 0);
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: trap.c,v 1.18 2001/07/07 05:09:44 tsutsui Exp $ */
|
||||
/* $NetBSD: trap.c,v 1.19 2001/09/10 21:19:33 chris Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988 University of Utah.
|
||||
@ -703,14 +703,14 @@ writeback(fp, docachepush)
|
||||
pmap_enter(pmap_kernel(), (vaddr_t)vmmap,
|
||||
trunc_page(f->f_fa), VM_PROT_WRITE,
|
||||
VM_PROT_WRITE|PMAP_WIRED);
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
fa = (u_int)&vmmap[m68k_page_offset(f->f_fa) & ~0xF];
|
||||
memcpy((caddr_t)fa, (caddr_t)&f->f_pd0, 16);
|
||||
(void) pmap_extract(pmap_kernel(), (vaddr_t)fa, &pa);
|
||||
DCFL(pa);
|
||||
pmap_remove(pmap_kernel(), (vaddr_t)vmmap,
|
||||
(vaddr_t)&vmmap[NBPG]);
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
} else
|
||||
printf("WARNING: pid %d(%s) uid %d: CPUSH not done\n",
|
||||
p->p_pid, p->p_comm, p->p_ucred->cr_uid);
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: vm_machdep.c,v 1.10 2001/07/25 15:56:30 tsutsui Exp $ */
|
||||
/* $NetBSD: vm_machdep.c,v 1.11 2001/09/10 21:19:33 chris Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988 University of Utah.
|
||||
@ -229,7 +229,7 @@ pagemove(from, to, size)
|
||||
to += PAGE_SIZE;
|
||||
size -= PAGE_SIZE;
|
||||
}
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
}
|
||||
|
||||
/*
|
||||
@ -317,7 +317,7 @@ vmapbuf(bp, len)
|
||||
kva += PAGE_SIZE;
|
||||
len -= PAGE_SIZE;
|
||||
} while (len);
|
||||
pmap_update();
|
||||
pmap_update(kpmap);
|
||||
}
|
||||
|
||||
/*
|
||||
@ -339,7 +339,7 @@ vunmapbuf(bp, len)
|
||||
len = m68k_round_page(off + len);
|
||||
|
||||
pmap_remove(vm_map_pmap(phys_map), kva, kva + len);
|
||||
pmap_update();
|
||||
pmap_update(vm_map_pmap(phys_map));
|
||||
uvm_km_free_wakeup(phys_map, kva, len);
|
||||
bp->b_data = bp->b_saveaddr;
|
||||
bp->b_saveaddr = 0;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: bus.c,v 1.7 2001/05/26 21:27:11 chs Exp $ */
|
||||
/* $NetBSD: bus.c,v 1.8 2001/09/10 21:19:20 chris Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||
@ -719,7 +719,7 @@ _bus_dmamem_map(t, segs, nsegs, size, kvap, flags)
|
||||
/* XXX Do something about COHERENT here. */
|
||||
}
|
||||
}
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.58 2001/06/02 18:09:17 chs Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.59 2001/09/10 21:19:20 chris Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988 University of Utah.
|
||||
@ -43,7 +43,7 @@
|
||||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.58 2001/06/02 18:09:17 chs Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.59 2001/09/10 21:19:20 chris Exp $");
|
||||
|
||||
/* from: Utah Hdr: machdep.c 1.63 91/04/24 */
|
||||
|
||||
@ -460,7 +460,7 @@ cpu_startup()
|
||||
curbufsize -= PAGE_SIZE;
|
||||
}
|
||||
}
|
||||
pmap_update();
|
||||
pmap_update(pmap_kernel());
|
||||
|
||||
/*
|
||||
* Allocate a submap for exec arguments. This map effectively
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user