Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch Define MIPS3_PG_SIZE_MASK_TO_SIZE() macro in the MI...
details: https://anonhg.NetBSD.org/src/rev/64b9d0525525
branches: trunk
changeset: 584968:64b9d0525525
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Mon Oct 10 02:14:43 2005 +0000
description:
Define MIPS3_PG_SIZE_MASK_TO_SIZE() macro in the MI mips header.
diffstat:
sys/arch/arc/arc/wired_map.c | 7 ++-----
sys/arch/mips/include/mips3_pte.h | 8 +++++++-
2 files changed, 9 insertions(+), 6 deletions(-)
diffs (53 lines):
diff -r 140cf0fe7e67 -r 64b9d0525525 sys/arch/arc/arc/wired_map.c
--- a/sys/arch/arc/arc/wired_map.c Mon Oct 10 01:06:24 2005 +0000
+++ b/sys/arch/arc/arc/wired_map.c Mon Oct 10 02:14:43 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: wired_map.c,v 1.8 2005/01/22 07:35:33 tsutsui Exp $ */
+/* $NetBSD: wired_map.c,v 1.9 2005/10/10 02:14:43 tsutsui Exp $ */
/*-
* Copyright (C) 2000 Shuichiro URATA. All rights reserved.
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: wired_map.c,v 1.8 2005/01/22 07:35:33 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: wired_map.c,v 1.9 2005/10/10 02:14:43 tsutsui Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -37,9 +37,6 @@
#include <mips/pte.h>
#include <arc/arc/wired_map.h>
-#define MIPS3_PG_SIZE_MASK_TO_SIZE(sizemask) \
- ((((sizemask) | 0x00001fff) + 1) / 2)
-
#define VA_FREE_START 0xe0000000 /* XXX */
#define ARC_TLB_WIRED_ENTRIES 8 /* upper limit */
diff -r 140cf0fe7e67 -r 64b9d0525525 sys/arch/mips/include/mips3_pte.h
--- a/sys/arch/mips/include/mips3_pte.h Mon Oct 10 01:06:24 2005 +0000
+++ b/sys/arch/mips/include/mips3_pte.h Mon Oct 10 02:14:43 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mips3_pte.h,v 1.17 2005/09/08 15:11:43 tsutsui Exp $ */
+/* $NetBSD: mips3_pte.h,v 1.18 2005/10/10 02:14:43 tsutsui Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -178,9 +178,15 @@
#define MIPS3_PG_SIZE_64M 0x07ffe000
#define MIPS3_PG_SIZE_256M 0x1fffe000
+#define MIPS3_PG_SIZE_MASK_TO_SIZE(pg_mask) \
+ ((((pg_mask) | 0x00001fff) + 1) / 2)
+
/* NEC Vr41xx uses different pagemask values. */
#define MIPS4100_PG_SIZE_1K 0x00000000
#define MIPS4100_PG_SIZE_4K 0x00001800
#define MIPS4100_PG_SIZE_16K 0x00007800
#define MIPS4100_PG_SIZE_64K 0x0001f800
#define MIPS4100_PG_SIZE_256K 0x0007f800
+
+#define MIPS4100_PG_SIZE_MASK_TO_SIZE(pg_mask) \
+ ((((pg_mask) | 0x000007ff) + 1) / 2)
Home |
Main Index |
Thread Index |
Old Index