Source-Changes-HG archive

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

[src/trunk]: src/sys/arch move MMUCR register definitions into mmureg.h



details:   https://anonhg.NetBSD.org/src/rev/180d5032502f
branches:  trunk
changeset: 483913:180d5032502f
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Mon Mar 20 20:30:33 2000 +0000

description:
move MMUCR register definitions into mmureg.h

diffstat:

 sys/arch/evbsh3/evbsh3/machdep.c |   7 +------
 sys/arch/mmeye/mmeye/machdep.c   |   7 +------
 sys/arch/sh3/include/mmureg.h    |  25 ++++++++++++++++++++++++-
 3 files changed, 26 insertions(+), 13 deletions(-)

diffs (81 lines):

diff -r cf1e0770c8bd -r 180d5032502f sys/arch/evbsh3/evbsh3/machdep.c
--- a/sys/arch/evbsh3/evbsh3/machdep.c  Mon Mar 20 20:11:00 2000 +0000
+++ b/sys/arch/evbsh3/evbsh3/machdep.c  Mon Mar 20 20:30:33 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.9 2000/02/24 23:32:32 msaitoh Exp $      */
+/*     $NetBSD: machdep.c,v 1.10 2000/03/20 20:30:34 msaitoh Exp $     */
 
 /*-
  * Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
@@ -610,11 +610,6 @@
         * Activate MMU
         */
 
-#define MMUCR_AT       0x0001  /* address traslation enable */
-#define MMUCR_IX       0x0002  /* index mode */
-#define MMUCR_TF       0x0004  /* TLB flush */
-#define MMUCR_SV       0x0100  /* single virtual space mode */
-
        SHREG_MMUCR = MMUCR_AT | MMUCR_TF | MMUCR_SV;
 
        /*
diff -r cf1e0770c8bd -r 180d5032502f sys/arch/mmeye/mmeye/machdep.c
--- a/sys/arch/mmeye/mmeye/machdep.c    Mon Mar 20 20:11:00 2000 +0000
+++ b/sys/arch/mmeye/mmeye/machdep.c    Mon Mar 20 20:30:33 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.7 2000/02/24 19:42:37 msaitoh Exp $      */
+/*     $NetBSD: machdep.c,v 1.8 2000/03/20 20:30:34 msaitoh Exp $      */
 
 /*-
  * Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
@@ -581,11 +581,6 @@
        MMEYE_LED = 1;
 #endif
 
-#define MMUCR_AT       0x0001  /* address traslation enable */
-#define MMUCR_IX       0x0002  /* index mode */
-#define MMUCR_TF       0x0004  /* TLB flush */
-#define MMUCR_SV       0x0100  /* single virtual space mode */
-
        SHREG_MMUCR = MMUCR_AT | MMUCR_TF | MMUCR_SV;
 
        /*
diff -r cf1e0770c8bd -r 180d5032502f sys/arch/sh3/include/mmureg.h
--- a/sys/arch/sh3/include/mmureg.h     Mon Mar 20 20:11:00 2000 +0000
+++ b/sys/arch/sh3/include/mmureg.h     Mon Mar 20 20:30:33 2000 +0000
@@ -1,4 +1,5 @@
-/* $NetBSD: mmureg.h,v 1.2 1999/09/16 12:48:35 msaitoh Exp $ */
+/* $Id: mmureg.h,v 1.3 2000/03/20 20:30:33 msaitoh Exp $ */
+/* $NetBSD: mmureg.h,v 1.3 2000/03/20 20:30:33 msaitoh Exp $ */
 
 /*-
  * Copyright (C) 1999 SAITOH Masanobu.  All rights reserved.
@@ -56,6 +57,28 @@
 
 #endif
 
+#if !defined(SH4)
+
+/* SH3 definitions */
+#define MMUCR_AT       0x0001  /* address traslation enable */
+#define MMUCR_IX       0x0002  /* index mode */
+#define MMUCR_TF       0x0004  /* TLB flush */
+#define MMUCR_SV       0x0100  /* single virtual space mode */
+
+#else
+
+/* SH4 definitions */
+#define MMUCR_AT       0x0001  /* address traslation enable */
+#define MMUCR_TI       0x0004  /* TLB Invaliate */
+#define MMUCR_SV       0x0100  /* single virtual space mode */
+#define MMUCR_SQMD     0x0200  /* Store Queue mode */
+
+/* alias */
+#define MMUCR_TF       MMUCR_TI
+
+#endif
+
+
 #ifdef _KERNEL
 extern int PageDirReg;
 #endif



Home | Main Index | Thread Index | Old Index