Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/rump/librump/rumpkern add rest of sparc pagesize variables



details:   https://anonhg.NetBSD.org/src/rev/3b56a7139ad2
branches:  trunk
changeset: 755638:3b56a7139ad2
user:      pooka <pooka%NetBSD.org@localhost>
date:      Sun Jun 13 11:05:58 2010 +0000

description:
add rest of sparc pagesize variables

diffstat:

 sys/rump/librump/rumpkern/emul.c |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (31 lines):

diff -r 9ca4390d8f57 -r 3b56a7139ad2 sys/rump/librump/rumpkern/emul.c
--- a/sys/rump/librump/rumpkern/emul.c  Sun Jun 13 04:45:50 2010 +0000
+++ b/sys/rump/librump/rumpkern/emul.c  Sun Jun 13 11:05:58 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: emul.c,v 1.138 2010/06/10 21:40:42 pooka Exp $ */
+/*     $NetBSD: emul.c,v 1.139 2010/06/13 11:05:58 pooka Exp $ */
 
 /*
  * Copyright (c) 2007 Antti Kantee.  All Rights Reserved.
@@ -28,7 +28,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: emul.c,v 1.138 2010/06/10 21:40:42 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: emul.c,v 1.139 2010/06/13 11:05:58 pooka Exp $");
 
 #include <sys/param.h>
 #include <sys/null.h>
@@ -96,9 +96,11 @@
 
 struct lwplist alllwp = LIST_HEAD_INITIALIZER(alllwp);
 
-/* sparc doesn't sport constant page size */
+/* sparc doesn't sport constant page size, pretend we have 4k pages */
 #ifdef __sparc__
 int nbpg = 4096;
+int pgofset = 4096-1;
+int pgshift = 12;
 #endif
 
 struct loadavg averunnable = {



Home | Main Index | Thread Index | Old Index