Mon Jul 20 03:51:42 2009 UTC ()
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


(kiyohara)
diff -r1.3 -r1.4 src/sys/uvm/uvm_emap.c
diff -r1.21 -r1.22 src/sys/uvm/uvm_param.h

cvs diff -r1.3 -r1.4 src/sys/uvm/Attic/uvm_emap.c (expand / switch to context diff)
--- src/sys/uvm/Attic/uvm_emap.c 2009/07/19 15:17:29 1.3
+++ src/sys/uvm/Attic/uvm_emap.c 2009/07/20 03:51:42 1.4
@@ -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;
 

cvs diff -r1.21 -r1.22 src/sys/uvm/uvm_param.h (expand / switch to context diff)
--- src/sys/uvm/uvm_param.h 2006/08/04 22:42:36 1.21
+++ src/sys/uvm/uvm_param.h 2009/07/20 03:51:42 1.22
@@ -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 */