Source-Changes-HG archive

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

[src/trunk]: src/sys/uvm Add a new function called uvm_md_init() that can be ...



details:   https://anonhg.NetBSD.org/src/rev/b61693e108f0
branches:  trunk
changeset: 819901:b61693e108f0
user:      cherry <cherry%NetBSD.org@localhost>
date:      Thu Dec 22 12:55:21 2016 +0000

description:
Add a new function called uvm_md_init() that can be called at the
appropriate time in the boot path by MD code.

diffstat:

 sys/uvm/uvm_extern.h |   3 ++-
 sys/uvm/uvm_init.c   |  15 +++++++++++++--
 2 files changed, 15 insertions(+), 3 deletions(-)

diffs (53 lines):

diff -r 5f5c78027a57 -r b61693e108f0 sys/uvm/uvm_extern.h
--- a/sys/uvm/uvm_extern.h      Thu Dec 22 12:42:24 2016 +0000
+++ b/sys/uvm/uvm_extern.h      Thu Dec 22 12:55:21 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uvm_extern.h,v 1.198 2016/07/20 12:38:43 maxv Exp $    */
+/*     $NetBSD: uvm_extern.h,v 1.199 2016/12/22 12:55:21 cherry Exp $  */
 
 /*
  * Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -619,6 +619,7 @@
 
 
 /* uvm_init.c */
+void                   uvm_md_init(void);
 void                   uvm_init(void);
 
 /* uvm_io.c */
diff -r 5f5c78027a57 -r b61693e108f0 sys/uvm/uvm_init.c
--- a/sys/uvm/uvm_init.c        Thu Dec 22 12:42:24 2016 +0000
+++ b/sys/uvm/uvm_init.c        Thu Dec 22 12:55:21 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uvm_init.c,v 1.46 2015/04/03 01:03:42 riastradh Exp $  */
+/*     $NetBSD: uvm_init.c,v 1.47 2016/12/22 12:55:21 cherry Exp $     */
 
 /*
  * Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -32,7 +32,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_init.c,v 1.46 2015/04/03 01:03:42 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_init.c,v 1.47 2016/12/22 12:55:21 cherry Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -69,6 +69,17 @@
 kmutex_t uvm_swap_data_lock;
 
 /*
+ * uvm_md_init: Init dependant on the MD boot context.
+ *             called from MD code.
+ */
+
+void
+uvm_md_init(void)
+{
+       uvm_setpagesize(); /* initialize PAGE_SIZE-dependent variables */
+}
+
+/*
  * uvm_init: init the VM system.   called from kern/init_main.c.
  */
 



Home | Main Index | Thread Index | Old Index