Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/arm32/arm32 No longer need to pmap_modified_emulati...



details:   https://anonhg.NetBSD.org/src/rev/59b96a0b4820
branches:  trunk
changeset: 473229:59b96a0b4820
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Wed May 26 00:40:20 1999 +0000

description:
No longer need to pmap_modified_emulation() in cpu_swapin(), since
uvm_fault_wire() does the right thing with access_type.

XXX Was there a bug here?  pmap_modified_emulation() *wasn't* done in
XXX cpu_fork()!!

diffstat:

 sys/arch/arm32/arm32/vm_machdep.c |  9 +--------
 1 files changed, 1 insertions(+), 8 deletions(-)

diffs (37 lines):

diff -r f6256c3fc22a -r 59b96a0b4820 sys/arch/arm32/arm32/vm_machdep.c
--- a/sys/arch/arm32/arm32/vm_machdep.c Wed May 26 00:37:40 1999 +0000
+++ b/sys/arch/arm32/arm32/vm_machdep.c Wed May 26 00:40:20 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vm_machdep.c,v 1.42 1999/05/13 21:58:33 thorpej Exp $  */
+/*     $NetBSD: vm_machdep.c,v 1.43 1999/05/26 00:40:20 thorpej Exp $  */
 
 /*
  * Copyright (c) 1994-1998 Mark Brinicombe.
@@ -84,7 +84,6 @@
 void   switch_exit     __P((struct proc *p, struct proc *proc0));
 extern void proc_trampoline    __P((void));
 
-int pmap_modified_emulation __P((pmap_t, vm_offset_t));
 pt_entry_t *pmap_pte   __P((pmap_t, vm_offset_t));
 
 /*
@@ -240,7 +239,6 @@
 cpu_swapin(p)
        struct proc *p;
 {
-       int i;
 
 #ifdef PMAP_DEBUG
        if (pmap_debug_level >= 0)
@@ -248,11 +246,6 @@
                    p->p_comm, p->p_vmspace->vm_map.pmap);
 #endif /* PMAP_DEBUG */
 
-       /* Make sure the pages are *really* wired. */
-       for (i = 0; i < UPAGES; i++)
-               pmap_modified_emulation(kernel_map->pmap,
-                   (vaddr_t)p->p_addr + (i << PGSHIFT));
-
        /* Map the system page */
        pmap_enter(p->p_vmspace->vm_map.pmap, 0x00000000, systempage.pv_pa,
            VM_PROT_READ, TRUE, VM_PROT_READ);



Home | Main Index | Thread Index | Old Index