Module Name: src Committed By: uebayasi Date: Sun Nov 14 04:31:03 UTC 2010
Modified Files: src/sys/uvm: uvm_init.c uvm_param.h Log Message: Oops. Fix thinko. To generate a diff of this commit: cvs rdiff -u -r1.37 -r1.38 src/sys/uvm/uvm_init.c cvs rdiff -u -r1.24 -r1.25 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_init.c diff -u src/sys/uvm/uvm_init.c:1.37 src/sys/uvm/uvm_init.c:1.38 --- src/sys/uvm/uvm_init.c:1.37 Sun Nov 14 04:25:16 2010 +++ src/sys/uvm/uvm_init.c Sun Nov 14 04:31:02 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: uvm_init.c,v 1.37 2010/11/14 04:25:16 uebayasi Exp $ */ +/* $NetBSD: uvm_init.c,v 1.38 2010/11/14 04:31:02 uebayasi Exp $ */ /* * @@ -39,7 +39,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: uvm_init.c,v 1.37 2010/11/14 04:25:16 uebayasi Exp $"); +__KERNEL_RCSID(0, "$NetBSD: uvm_init.c,v 1.38 2010/11/14 04:31:02 uebayasi Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -66,7 +66,7 @@ struct uvmexp uvmexp; /* decl */ struct uvm_object *uvm_kernel_object; -#if !defined(PAGE_SIZE) +#if defined(__uvmexp_pagesize) int *uvmexp_pagesize = &uvmexp.pagesize; int *uvmexp_pagemask = &uvmexp.pagemask; int *uvmexp_pageshift = &uvmexp.pageshift; Index: src/sys/uvm/uvm_param.h diff -u src/sys/uvm/uvm_param.h:1.24 src/sys/uvm/uvm_param.h:1.25 --- src/sys/uvm/uvm_param.h:1.24 Sun Nov 14 04:25:16 2010 +++ src/sys/uvm/uvm_param.h Sun Nov 14 04:31:02 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: uvm_param.h,v 1.24 2010/11/14 04:25:16 uebayasi Exp $ */ +/* $NetBSD: uvm_param.h,v 1.25 2010/11/14 04:31:02 uebayasi Exp $ */ /* * Copyright (c) 1991, 1993 @@ -151,6 +151,7 @@ #define PAGE_SIZE (*uvmexp_pagesize) /* size of page */ #define PAGE_MASK (*uvmexp_pagemask) /* size of page - 1 */ #define PAGE_SHIFT (*uvmexp_pageshift) /* bits to shift for pages */ +#define __uvmexp_pagesize #endif /* PAGE_SIZE */ #endif /* _KERNEL */