Module Name:    src
Committed By:   kiyohara
Date:           Mon Jul 20 03:51:42 UTC 2009

Modified Files:
        src/sys/uvm: uvm_emap.c uvm_param.h

Log Message:
Globalize uvm_emap_size.  It use to calculate size of kernel page table.
  http://mail-index.netbsd.org/current-users/2009/07/13/msg009983.html


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/uvm/uvm_emap.c
cvs rdiff -u -r1.21 -r1.22 src/sys/uvm/uvm_param.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_emap.c
diff -u src/sys/uvm/uvm_emap.c:1.3 src/sys/uvm/uvm_emap.c:1.4
--- src/sys/uvm/uvm_emap.c:1.3	Sun Jul 19 15:17:29 2009
+++ src/sys/uvm/uvm_emap.c	Mon Jul 20 03:51:42 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: uvm_emap.c,v 1.3 2009/07/19 15:17:29 rmind Exp $	*/
+/*	$NetBSD: uvm_emap.c,v 1.4 2009/07/20 03:51:42 kiyohara Exp $	*/
 
 /*-
  * Copyright (c) 2009 The NetBSD Foundation, Inc.
@@ -46,7 +46,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_emap.c,v 1.3 2009/07/19 15:17:29 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_emap.c,v 1.4 2009/07/20 03:51:42 kiyohara Exp $");
 
 #include <sys/param.h>
 #include <sys/kernel.h>
@@ -71,7 +71,7 @@
 
 #define	uvm_emap_gen	(_uvm_emap_gen[0])
 
-static u_int		uvm_emap_size = UVM_EMAP_SIZE;
+u_int			uvm_emap_size = UVM_EMAP_SIZE;
 static vaddr_t		uvm_emap_va;
 static vmem_t *		uvm_emap_vmem;
 

Index: src/sys/uvm/uvm_param.h
diff -u src/sys/uvm/uvm_param.h:1.21 src/sys/uvm/uvm_param.h:1.22
--- src/sys/uvm/uvm_param.h:1.21	Fri Aug  4 22:42:36 2006
+++ src/sys/uvm/uvm_param.h	Mon Jul 20 03:51:42 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: uvm_param.h,v 1.21 2006/08/04 22:42:36 he Exp $	*/
+/*	$NetBSD: uvm_param.h,v 1.22 2009/07/20 03:51:42 kiyohara Exp $	*/
 
 /*
  * Copyright (c) 1991, 1993
@@ -245,6 +245,7 @@
 
 extern int		ubc_nwins;	/* number of UBC mapping windows */
 extern int		ubc_winshift;	/* shift for a UBC mapping window */
+extern u_int		uvm_emap_size;	/* size of emap */
 
 #else
 /* out-of-kernel versions of round_page and trunc_page */

Reply via email to