Module Name: src
Committed By: matt
Date: Thu Aug 20 07:44:50 UTC 2009
Modified Files:
src/sys/arch/mips/include [matt-nb5-mips64]: mips3_pte.h
Log Message:
Add a MIPS3_PG_TO_CCA() macro to get the CCA out of the saved page attributes.
To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.23.38.1 src/sys/arch/mips/include/mips3_pte.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/arch/mips/include/mips3_pte.h
diff -u src/sys/arch/mips/include/mips3_pte.h:1.23 src/sys/arch/mips/include/mips3_pte.h:1.23.38.1
--- src/sys/arch/mips/include/mips3_pte.h:1.23 Wed Oct 17 19:55:37 2007
+++ src/sys/arch/mips/include/mips3_pte.h Thu Aug 20 07:44:50 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: mips3_pte.h,v 1.23 2007/10/17 19:55:37 garbled Exp $ */
+/* $NetBSD: mips3_pte.h,v 1.23.38.1 2009/08/20 07:44:50 matt Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -126,6 +126,7 @@
#define MIPS3_PG_ATTR 0x0000003f
#define MIPS3_CCA_TO_PG(cca) ((cca) << 3)
+#define MIPS3_PG_TO_CCA(cca) (((cca) >> 3) & 7)
#define MIPS3_PG_UNCACHED MIPS3_CCA_TO_PG(2)
#ifdef HPCMIPS_L1CACHE_DISABLE /* MIPS3_L1CACHE_DISABLE */