Source-Changes-HG archive

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

[src/trunk]: src/sys/arch use macros



details:   https://anonhg.NetBSD.org/src/rev/96a6c989c849
branches:  trunk
changeset: 480693:96a6c989c849
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Mon Jan 17 21:59:43 2000 +0000

description:
use macros

diffstat:

 sys/arch/evbsh3/evbsh3/machdep.c |  10 +++++-----
 sys/arch/mmeye/mmeye/machdep.c   |  10 +++++-----
 2 files changed, 10 insertions(+), 10 deletions(-)

diffs (62 lines):

diff -r d561d805589d -r 96a6c989c849 sys/arch/evbsh3/evbsh3/machdep.c
--- a/sys/arch/evbsh3/evbsh3/machdep.c  Mon Jan 17 21:57:14 2000 +0000
+++ b/sys/arch/evbsh3/evbsh3/machdep.c  Mon Jan 17 21:59:43 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.5 1999/09/21 13:16:15 tsubai Exp $       */
+/*     $NetBSD: machdep.c,v 1.6 2000/01/17 21:59:44 msaitoh Exp $      */
 
 /*-
  * Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
@@ -971,7 +971,7 @@
 
 #ifndef MMEYE_NO_CACHE
        /* Cache ON */
-       SHREG_CCR = 0x0001;
+       SHREG_CCR = CCR_CE;
 #endif
 }
 
@@ -980,9 +980,9 @@
 {
 #ifndef MMEYE_NO_CACHE
        /* Cache ON */
-       SHREG_CCR = 0x0001;
-       SHREG_CCR = 0x0009; /* cache clear */
-       SHREG_CCR = 0x0001; /* cache on */
+       SHREG_CCR = CCR_CE;
+       SHREG_CCR = CCR_CF | CCR_CE;    /* cache clear */
+       SHREG_CCR = CCR_CE;             /* cache on */
 #endif
 }
 
diff -r d561d805589d -r 96a6c989c849 sys/arch/mmeye/mmeye/machdep.c
--- a/sys/arch/mmeye/mmeye/machdep.c    Mon Jan 17 21:57:14 2000 +0000
+++ b/sys/arch/mmeye/mmeye/machdep.c    Mon Jan 17 21:59:43 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.5 1999/09/21 13:16:16 tsubai Exp $       */
+/*     $NetBSD: machdep.c,v 1.6 2000/01/17 21:59:43 msaitoh Exp $      */
 
 /*-
  * Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
@@ -968,7 +968,7 @@
 
 #ifndef MMEYE_NO_CACHE
        /* Cache ON */
-       SHREG_CCR = 0x0001;
+       SHREG_CCR = CCR_CE;
 #endif
 
        /* MMEYE_LED = 0x04; */
@@ -979,9 +979,9 @@
 {
 #ifndef MMEYE_NO_CACHE
        /* Cache ON */
-       SHREG_CCR = 0x0001;
-       SHREG_CCR = 0x0009; /* cache clear */
-       SHREG_CCR = 0x0001; /* cache on */
+       SHREG_CCR = CCR_CE;
+       SHREG_CCR = CCR_CF | CCR_CE;    /* cache clear */
+       SHREG_CCR = CCR_CE;             /* cache on */
 #endif
 }
 



Home | Main Index | Thread Index | Old Index