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 We could not possibly have been updatin...
details:   https://anonhg.NetBSD.org/src/rev/a68d95f4af51
branches:  trunk
changeset: 467343:a68d95f4af51
user:      mycroft <mycroft%NetBSD.org@localhost>
date:      Tue Mar 23 12:30:45 1999 +0000
description:
We could not possibly have been updating the pv attributed correctly in
pmap_enter(), so... make the obvious change.
diffstat:
 sys/arch/arm32/arm32/pmap.c |  11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)
diffs (26 lines):
diff -r 566567e02e01 -r a68d95f4af51 sys/arch/arm32/arm32/pmap.c
--- a/sys/arch/arm32/arm32/pmap.c       Tue Mar 23 12:01:45 1999 +0000
+++ b/sys/arch/arm32/arm32/pmap.c       Tue Mar 23 12:30:45 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.c,v 1.42 1999/03/10 20:54:17 mark Exp $   */
+/*     $NetBSD: pmap.c,v 1.43 1999/03/23 12:30:45 mycroft Exp $        */
 
 /*
  * Copyright (c) 1994-1998 Mark Brinicombe.
@@ -2239,11 +2239,12 @@
                panic("oopss: *pte = 0 in pmap_enter() npte=%08x\n", npte);
 
        if (pv) {
-               int flags = 0;
+               int flags;
          
-               if (wired) flags |= PT_W;
-                       flags |= npte & (PT_Wr | PT_Us);
-               pmap_modify_pv(pmap, va, pv, ~(PT_Wr | PT_Us | PT_W), flags);
+               flags = npte & (PT_Wr | PT_Us);
+               if (wired)
+                       flags |= PT_W;
+               pmap_modify_pv(pmap, va, pv, PT_Wr | PT_Us | PT_W, flags);
        }
 
        /*
Home |
Main Index |
Thread Index |
Old Index