Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/mips/include Fix pte_cached_p for MIPS_HAS_R4K_MMU



details:   https://anonhg.NetBSD.org/src/rev/7045e1dda3e6
branches:  trunk
changeset: 817727:7045e1dda3e6
user:      skrll <skrll%NetBSD.org@localhost>
date:      Sun Sep 04 07:27:49 2016 +0000

description:
Fix pte_cached_p for MIPS_HAS_R4K_MMU

diffstat:

 sys/arch/mips/include/pte.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 997c0b556c4b -r 7045e1dda3e6 sys/arch/mips/include/pte.h
--- a/sys/arch/mips/include/pte.h       Sat Sep 03 23:31:53 2016 +0000
+++ b/sys/arch/mips/include/pte.h       Sun Sep 04 07:27:49 2016 +0000
@@ -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 @@
 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;
        }



Home | Main Index | Thread Index | Old Index