Module Name: src
Committed By: skrll
Date: Sun Sep 4 07:27:49 UTC 2016
Modified Files:
src/sys/arch/mips/include: pte.h
Log Message:
Fix pte_cached_p for MIPS_HAS_R4K_MMU
To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 src/sys/arch/mips/include/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/pte.h
diff -u src/sys/arch/mips/include/pte.h:1.23 src/sys/arch/mips/include/pte.h:1.24
--- src/sys/arch/mips/include/pte.h:1.23 Mon Jul 11 16:15:35 2016
+++ src/sys/arch/mips/include/pte.h Sun Sep 4 07:27:49 2016
@@ -1,4 +1,4 @@
-/* $NetBSD: pte.h,v 1.23 2016/07/11 16:15:35 matt Exp $ */
+/* $NetBSD: pte.h,v 1.24 2016/09/04 07:27:49 skrll Exp $ */
/*-
* Copyright (c) 1997 The NetBSD Foundation, Inc.
@@ -315,7 +315,7 @@ static inline bool
pte_cached_p(pt_entry_t pte)
{
if (MIPS_HAS_R4K_MMU) {
- return MIPS3_PG_TO_CCA(pte) == mips_options.mips3_pg_cached;
+ return MIPS3_PG_TO_CCA(pte) == MIPS3_PG_TO_CCA(mips_options.mips3_pg_cached);
} else {
return (pte & MIPS1_PG_N) == 0;
}