Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sun3/sun3 Use common %cacr definitions between sun3...



details:   https://anonhg.NetBSD.org/src/rev/79dd5e6f80c8
branches:  trunk
changeset: 503506:79dd5e6f80c8
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Wed Feb 07 14:28:50 2001 +0000

description:
Use common %cacr definitions between sun3 and sun3x.
%cacr bits added on 68030 don't cause any sideeffect on 68020.

XXX: We probably need <m68k/cacr.h>. See comments in <m68k/cpu.h>.

diffstat:

 sys/arch/sun3/sun3/cache.h |  8 +-------
 1 files changed, 1 insertions(+), 7 deletions(-)

diffs (26 lines):

diff -r 477aeea9cbbc -r 79dd5e6f80c8 sys/arch/sun3/sun3/cache.h
--- a/sys/arch/sun3/sun3/cache.h        Wed Feb 07 14:22:12 2001 +0000
+++ b/sys/arch/sun3/sun3/cache.h        Wed Feb 07 14:28:50 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cache.h,v 1.4 1998/02/05 04:57:27 gwr Exp $    */
+/*     $NetBSD: cache.h,v 1.5 2001/02/07 14:28:50 tsutsui Exp $        */
 
 /*-
  * Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -46,11 +46,6 @@
 #define        IC_CE           0x0004  /* clear instruction cache entry */
 #define        IC_CLR          0x0008  /* clear entire instruction cache */
 
-#ifdef _SUN3_
-#define IC_CLEAR (IC_CLR|IC_ENABLE)
-#endif /* SUN3 */
-
-#ifdef _SUN3X_
 /* additional fields in the 68030 cache control register */
 #define        IC_BE           0x0010  /* instruction burst enable */
 #define        DC_ENABLE       0x0100  /* data cache enable */
@@ -65,4 +60,3 @@
 #define        CACHE_CLR       (CACHE_ON)
 #define        IC_CLEAR        (DC_WA|DC_BE|DC_ENABLE|IC_BE|IC_CLR|IC_ENABLE)
 #define        DC_CLEAR        (DC_WA|DC_BE|DC_CLR|DC_ENABLE|IC_BE|IC_ENABLE)
-#endif /* SUN3X */



Home | Main Index | Thread Index | Old Index