Module Name:    src
Committed By:   christos
Date:           Sun Dec 25 03:39:26 UTC 2016

Modified Files:
        src/sys/uvm: uvm_physseg.c

Log Message:
Provide a set_available_start method for the non UVM_HOTPLUG case.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/uvm/uvm_physseg.c

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.3 src/sys/uvm/uvm_physseg.c:1.4
--- src/sys/uvm/uvm_physseg.c:1.3	Fri Dec 23 02:42:32 2016
+++ src/sys/uvm/uvm_physseg.c	Sat Dec 24 22:39:26 2016
@@ -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 @@ uvm_physseg_get_avail_start(uvm_physseg_
 	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)
 {

Reply via email to