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 remove obsolete interface. add defines ...



details:   https://anonhg.NetBSD.org/src/rev/63c856421b80
branches:  trunk
changeset: 526733:63c856421b80
user:      uch <uch%NetBSD.org@localhost>
date:      Thu May 09 12:30:45 2002 +0000

description:
remove obsolete interface. add defines for inquire cache feature.

diffstat:

 sys/arch/sh3/include/cache.h |  21 +++++++++++++++------
 1 files changed, 15 insertions(+), 6 deletions(-)

diffs (41 lines):

diff -r 5cedf3eac3ef -r 63c856421b80 sys/arch/sh3/include/cache.h
--- a/sys/arch/sh3/include/cache.h      Thu May 09 12:30:11 2002 +0000
+++ b/sys/arch/sh3/include/cache.h      Thu May 09 12:30:45 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cache.h,v 1.3 2002/04/28 17:10:33 uch Exp $    */
+/*     $NetBSD: cache.h,v 1.4 2002/05/09 12:30:45 uch Exp $    */
 
 /*-
  * Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -111,11 +111,6 @@
 #define        _SH3_CACHE_H_
 
 #ifdef _KERNEL
-#define        COMPAT_OLD_CACHE_FLUSH //XXX
-#ifdef COMPAT_OLD_CACHE_FLUSH
-#define        cacheflush()    sh_dcache_wbinv_all()
-#endif /* COMPAT_OLD_CACHE_FLUSH */
-
 struct sh_cache_ops {
        void (*_icache_sync_all)(void);
        void (*_icache_sync_range)(vaddr_t, vsize_t);
@@ -180,5 +175,19 @@
 void sh_cache_init(void);
 void sh_cache_information(void);
 
+#if defined(SH3) && defined(SH4)
+#define        SH_HAS_VIRTUAL_ALIAS    CPU_IS_SH4
+#define        SH_HAS_UNIFIED_CACHE    CPU_IS_SH3
+#define        SH_HAS_WRITEBACK_CACHE  (!sh_cache_write_through)
+#elif defined(SH3)
+#define        SH_HAS_VIRTUAL_ALIAS    0
+#define        SH_HAS_UNIFIED_CACHE    1
+#define        SH_HAS_WRITEBACK_CACHE  (!sh_cache_write_through)
+#elif defined(SH4)
+#define        SH_HAS_VIRTUAL_ALIAS    1
+#define        SH_HAS_UNIFIED_CACHE    0
+#define        SH_HAS_WRITEBACK_CACHE  (!sh_cache_write_through)
+#endif
+
 #endif /* _KERNEL */
 #endif /* _SH3_CACHE_H_ */



Home | Main Index | Thread Index | Old Index