Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sh3/include use MMUCR_TF macro defined in mmureg.h



details:   https://anonhg.NetBSD.org/src/rev/60937c186672
branches:  trunk
changeset: 511672:60937c186672
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Sun Jun 24 05:32:55 2001 +0000

description:
use MMUCR_TF macro defined in mmureg.h

diffstat:

 sys/arch/sh3/include/cpufunc.h |  7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diffs (31 lines):

diff -r 08fcd40463c3 -r 60937c186672 sys/arch/sh3/include/cpufunc.h
--- a/sys/arch/sh3/include/cpufunc.h    Sun Jun 24 05:22:18 2001 +0000
+++ b/sys/arch/sh3/include/cpufunc.h    Sun Jun 24 05:32:55 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cpufunc.h,v 1.6 2000/09/06 11:25:13 tsubai Exp $       */
+/*     $NetBSD: cpufunc.h,v 1.7 2001/06/24 05:32:55 msaitoh Exp $      */
 
 /*
  * Copyright (c) 1993 Charles Hannum.
@@ -58,11 +58,10 @@
 static __inline void
 tlbflush(void)
 {
-#define TLB_FLUSH 0x04
 /* #define CACHE_FLUSH 0x80 */
 
 #ifdef SH4
-       SHREG_MMUCR = (SHREG_MMUCR | TLB_FLUSH) & MMUCR_VALIDBITS;
+       SHREG_MMUCR = (SHREG_MMUCR | MMUCR_TF) & MMUCR_VALIDBITS;
        __asm __volatile("nop");
        __asm __volatile("nop");
        __asm __volatile("nop");
@@ -72,7 +71,7 @@
        __asm __volatile("nop");
        __asm __volatile("nop");
 #else
-       SHREG_MMUCR |= TLB_FLUSH;
+       SHREG_MMUCR |= MMUCR_TF;
 #endif
 
 /*   SHREG_CCR |= CACHE_FLUSH; */



Home | Main Index | Thread Index | Old Index