Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sparc64/include Calculate NBPG from PGSHFT.
details: https://anonhg.NetBSD.org/src/rev/68d7ba29c599
branches: trunk
changeset: 525845:68d7ba29c599
user: eeh <eeh%NetBSD.org@localhost>
date: Thu Apr 18 16:31:47 2002 +0000
description:
Calculate NBPG from PGSHFT.
diffstat:
sys/arch/sparc64/include/param.h | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (20 lines):
diff -r 2e3d53aaa090 -r 68d7ba29c599 sys/arch/sparc64/include/param.h
--- a/sys/arch/sparc64/include/param.h Thu Apr 18 15:45:23 2002 +0000
+++ b/sys/arch/sparc64/include/param.h Thu Apr 18 16:31:47 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: param.h,v 1.29 2002/04/08 21:05:30 eeh Exp $ */
+/* $NetBSD: param.h,v 1.30 2002/04/18 16:31:47 eeh Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -296,6 +296,8 @@
#define CPU_ISSUN4 (0)
#define CPU_ISSUN4OR4C (0)
#define CPU_ISSUN4COR4M (0)
-#define NBPG 8192 /* bytes/page */
+
+
+#define PGSHIFT 13 /* log2(NBPG) */
+#define NBPG (1<<PGSHIFT) /* bytes/page */
#define PGOFSET (NBPG-1) /* byte offset into page */
-#define PGSHIFT 13 /* log2(NBPG) */
Home |
Main Index |
Thread Index |
Old Index