Module Name: src
Committed By: rin
Date: Thu Dec 29 12:58:38 UTC 2016
Modified Files:
src/sys/uvm: uvm_physseg.c uvm_physseg.h
Log Message:
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
To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/sys/uvm/uvm_physseg.c
cvs rdiff -u -r1.6 -r1.7 src/sys/uvm/uvm_physseg.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/uvm/uvm_physseg.c
diff -u src/sys/uvm/uvm_physseg.c:1.5 src/sys/uvm/uvm_physseg.c:1.6
--- src/sys/uvm/uvm_physseg.c:1.5 Sun Dec 25 06:30:58 2016
+++ src/sys/uvm/uvm_physseg.c Thu Dec 29 12:58:38 2016
@@ -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 @@ uvm_physseg_get_avail_start(uvm_physseg_
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 @@ void uvm_physseg_set_avail_end(uvm_physs
ps->avail_end = avail_end;
}
-#endif /* PMAP_STEAL_MEMORY */
+#endif /* UVM_PHYSSEG_LEGACY */
paddr_t
uvm_physseg_get_avail_end(uvm_physseg_t upm)
Index: src/sys/uvm/uvm_physseg.h
diff -u src/sys/uvm/uvm_physseg.h:1.6 src/sys/uvm/uvm_physseg.h:1.7
--- src/sys/uvm/uvm_physseg.h:1.6 Mon Dec 26 18:47:00 2016
+++ src/sys/uvm/uvm_physseg.h Thu Dec 29 12:58:38 2016
@@ -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 @@ uvm_physseg_t uvm_physseg_find(paddr_t,
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 */