Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/uvm Oops. Fix thinko.
details: https://anonhg.NetBSD.org/src/rev/8809938060f7
branches: trunk
changeset: 758726:8809938060f7
user: uebayasi <uebayasi%NetBSD.org@localhost>
date: Sun Nov 14 04:31:02 2010 +0000
description:
Oops. Fix thinko.
diffstat:
sys/uvm/uvm_init.c | 6 +++---
sys/uvm/uvm_param.h | 3 ++-
2 files changed, 5 insertions(+), 4 deletions(-)
diffs (44 lines):
diff -r bd428efee7eb -r 8809938060f7 sys/uvm/uvm_init.c
--- a/sys/uvm/uvm_init.c Sun Nov 14 04:25:16 2010 +0000
+++ b/sys/uvm/uvm_init.c Sun Nov 14 04:31:02 2010 +0000
@@ -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;
diff -r bd428efee7eb -r 8809938060f7 sys/uvm/uvm_param.h
--- a/sys/uvm/uvm_param.h Sun Nov 14 04:25:16 2010 +0000
+++ b/sys/uvm/uvm_param.h Sun Nov 14 04:31:02 2010 +0000
@@ -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 */
Home |
Main Index |
Thread Index |
Old Index