Source-Changes-HG archive

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

[src/trunk]: src/sys/uvm Protect uvm_physseg_set_avail_{start, end} by UVM_PHY...



details:   https://anonhg.NetBSD.org/src/rev/ff8a9cf8f5c5
branches:  trunk
changeset: 349949:ff8a9cf8f5c5
user:      rin <rin%NetBSD.org@localhost>
date:      Thu Dec 29 12:58:38 2016 +0000

description:
Protect uvm_physseg_set_avail_{start,end} by UVM_PHYSSEG_LEGACY.
All the ports other than acorn26 do not use them any longer.
Ok cherry

diffstat:

 sys/uvm/uvm_physseg.c |  6 +++---
 sys/uvm/uvm_physseg.h |  6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diffs (53 lines):

diff -r 0cf5d4d5f871 -r ff8a9cf8f5c5 sys/uvm/uvm_physseg.c
--- a/sys/uvm/uvm_physseg.c     Thu Dec 29 12:54:10 2016 +0000
+++ b/sys/uvm/uvm_physseg.c     Thu Dec 29 12:58:38 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uvm_physseg.c,v 1.5 2016/12/25 06:30:58 cherry Exp $ */
+/* $NetBSD: uvm_physseg.c,v 1.6 2016/12/29 12:58:38 rin Exp $ */
 
 /*
  * Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -1004,7 +1004,7 @@
        return HANDLE_TO_PHYSSEG_NODE(upm)->avail_start;
 }
 
-#if defined(PMAP_STEAL_MEMORY)
+#if defined(UVM_PHYSSEG_LEGACY)
 void
 uvm_physseg_set_avail_start(uvm_physseg_t upm, paddr_t avail_start)
 {
@@ -1033,7 +1033,7 @@
        ps->avail_end = avail_end;
 }
 
-#endif /* PMAP_STEAL_MEMORY */
+#endif /* UVM_PHYSSEG_LEGACY */
 
 paddr_t
 uvm_physseg_get_avail_end(uvm_physseg_t upm)
diff -r 0cf5d4d5f871 -r ff8a9cf8f5c5 sys/uvm/uvm_physseg.h
--- a/sys/uvm/uvm_physseg.h     Thu Dec 29 12:54:10 2016 +0000
+++ b/sys/uvm/uvm_physseg.h     Thu Dec 29 12:58:38 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uvm_physseg.h,v 1.6 2016/12/26 18:47:00 cherry Exp $ */
+/* $NetBSD: uvm_physseg.h,v 1.7 2016/12/29 12:58:38 rin Exp $ */
 
 /*-
  * Copyright (c) 2016 The NetBSD Foundation, Inc.
@@ -135,14 +135,14 @@
 bool uvm_physseg_plug(paddr_t, size_t, uvm_physseg_t *);
 bool uvm_physseg_unplug(paddr_t, size_t);
 
-#if defined(PMAP_STEAL_MEMORY)
+#if defined(UVM_PHYSSEG_LEGACY)
 /*
  * XXX: Legacy: This needs to be upgraded to a full pa management
  * layer.
  */
 void uvm_physseg_set_avail_start(uvm_physseg_t, paddr_t);
 void uvm_physseg_set_avail_end(uvm_physseg_t, paddr_t);
-#endif /* PMAP_STEAL_MEMORY */
+#endif /* UVM_PHYSSEG_LEGACY */
 
 #endif /* _KERNEL */
 



Home | Main Index | Thread Index | Old Index