Source-Changes-HG archive

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

[src/trunk]: src/sys/uvm remove now-wrong comments. formatting nits.



details:   https://anonhg.NetBSD.org/src/rev/efdcc5cc72a6
branches:  trunk
changeset: 472587:efdcc5cc72a6
user:      mrg <mrg%NetBSD.org@localhost>
date:      Mon May 03 08:57:42 1999 +0000

description:
remove now-wrong comments.  formatting nits.

diffstat:

 sys/uvm/uvm_map.c |  17 +++++++----------
 1 files changed, 7 insertions(+), 10 deletions(-)

diffs (79 lines):

diff -r 08562879cbef -r efdcc5cc72a6 sys/uvm/uvm_map.c
--- a/sys/uvm/uvm_map.c Mon May 03 08:53:24 1999 +0000
+++ b/sys/uvm/uvm_map.c Mon May 03 08:57:42 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uvm_map.c,v 1.37 1999/04/19 14:43:46 chs Exp $ */
+/*     $NetBSD: uvm_map.c,v 1.38 1999/05/03 08:57:42 mrg Exp $ */
 
 /* 
  * Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -1704,7 +1704,6 @@
  *
  * => set_max means set max_protection.
  * => map must be unlocked.
- * => XXXCDC: does not work properly with share maps.  rethink.
  */
 
 #define MASK(entry)     (UVM_ET_ISCOPYONWRITE(entry) ? \
@@ -1740,10 +1739,10 @@
        current = entry;
        while ((current != &map->header) && (current->start < end)) {
                if (UVM_ET_ISSUBMAP(current))
-                       return(KERN_INVALID_ARGUMENT);
+                       return (KERN_INVALID_ARGUMENT);
                if ((new_prot & current->max_protection) != new_prot) {
                        vm_map_unlock(map);
-                       return(KERN_PROTECTION_FAILURE);
+                       return (KERN_PROTECTION_FAILURE);
                }
                        current = current->next;
        }
@@ -1793,7 +1792,6 @@
  * => map must be unlocked
  * => note that the inherit code is used during a "fork".  see fork
  *     code for details.
- * => XXXCDC: currently only works in main map.  what about share map?
  */
 
 int
@@ -1815,7 +1813,7 @@
                break;
        default:
                UVMHIST_LOG(maphist,"<- done (INVALID ARG)",0,0,0,0);
-               return(KERN_INVALID_ARGUMENT);
+               return (KERN_INVALID_ARGUMENT);
        }
 
        vm_map_lock(map);
@@ -2007,7 +2005,7 @@
                        }
                        vm_map_unlock(map);
                        UVMHIST_LOG(maphist,"<- done (INVALID WIRE)",0,0,0,0);
-                       return(KERN_INVALID_ARGUMENT);
+                       return (KERN_INVALID_ARGUMENT);
                }
                entry = entry->next;
        }
@@ -2089,7 +2087,6 @@
  * => called from sys_msync()
  * => caller must not write-lock map (read OK).
  * => we may sleep while cleaning if SYNCIO [with map read-locked]
- * => XXX: does this handle share maps properly?
  */
 
 int
@@ -2120,12 +2117,12 @@
        for (current = entry; current->start < end; current = current->next) {
                if (UVM_ET_ISSUBMAP(current)) {
                        vm_map_unlock_read(map);
-                       return(KERN_INVALID_ARGUMENT);
+                       return (KERN_INVALID_ARGUMENT);
                }
                if (end > current->end && (current->next == &map->header ||
                    current->end != current->next->start)) {
                        vm_map_unlock_read(map);
-                       return(KERN_INVALID_ADDRESS);
+                       return (KERN_INVALID_ADDRESS);
                }
        }
 



Home | Main Index | Thread Index | Old Index