Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/uvm Provide a set_available_start method for the non UVM...
details: https://anonhg.NetBSD.org/src/rev/309f31cf6f54
branches: trunk
changeset: 349827:309f31cf6f54
user: christos <christos%NetBSD.org@localhost>
date: Sun Dec 25 03:39:26 2016 +0000
description:
Provide a set_available_start method for the non UVM_HOTPLUG case.
diffstat:
sys/uvm/uvm_physseg.c | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
diffs (25 lines):
diff -r 69aa98848970 -r 309f31cf6f54 sys/uvm/uvm_physseg.c
--- a/sys/uvm/uvm_physseg.c Sun Dec 25 00:10:33 2016 +0000
+++ b/sys/uvm/uvm_physseg.c Sun Dec 25 03:39:26 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uvm_physseg.c,v 1.3 2016/12/23 07:42:32 cherry Exp $ */
+/* $NetBSD: uvm_physseg.c,v 1.4 2016/12/25 03:39:26 christos Exp $ */
/*
* Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -1032,6 +1032,15 @@
return HANDLE_TO_PHYSSEG_NODE(upm)->avail_start;
}
+#if defined(PMAP_STEAL_MEMORY)
+void
+uvm_physseg_set_avail_start(uvm_physseg_t upm, paddr_t avail_start)
+{
+ KASSERT(uvm_physseg_valid_p(upm));
+ HANDLE_TO_PHYSSEG_NODE(upm)->avail_start = avail_start;
+}
+#endif
+
paddr_t
uvm_physseg_get_avail_end(uvm_physseg_t upm)
{
Home |
Main Index |
Thread Index |
Old Index