Module Name:    src
Committed By:   cherry
Date:           Thu Dec 22 12:55:21 UTC 2016

Modified Files:
        src/sys/uvm: uvm_extern.h uvm_init.c

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


To generate a diff of this commit:
cvs rdiff -u -r1.198 -r1.199 src/sys/uvm/uvm_extern.h
cvs rdiff -u -r1.46 -r1.47 src/sys/uvm/uvm_init.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_extern.h
diff -u src/sys/uvm/uvm_extern.h:1.198 src/sys/uvm/uvm_extern.h:1.199
--- src/sys/uvm/uvm_extern.h:1.198	Wed Jul 20 12:38:43 2016
+++ src/sys/uvm/uvm_extern.h	Thu Dec 22 12:55:21 2016
@@ -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 @@ void			uvm_cpu_attach(struct cpu_info *)
 
 
 /* uvm_init.c */
+void			uvm_md_init(void);
 void			uvm_init(void);
 
 /* uvm_io.c */

Index: src/sys/uvm/uvm_init.c
diff -u src/sys/uvm/uvm_init.c:1.46 src/sys/uvm/uvm_init.c:1.47
--- src/sys/uvm/uvm_init.c:1.46	Fri Apr  3 01:03:42 2015
+++ src/sys/uvm/uvm_init.c	Thu Dec 22 12:55:21 2016
@@ -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_kentry_lock;
 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.
  */
 

Reply via email to