Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sun3 Use macro in <m68k/m68k.h> for cputype and mmu...



details:   https://anonhg.NetBSD.org/src/rev/31a7067955c3
branches:  trunk
changeset: 503235:31a7067955c3
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Sat Feb 03 12:59:48 2001 +0000

description:
Use macro in <m68k/m68k.h> for cputype and mmutype.

diffstat:

 sys/arch/sun3/sun3/locore2.c  |  7 +++----
 sys/arch/sun3/sun3x/locore2.c |  7 +++----
 2 files changed, 6 insertions(+), 8 deletions(-)

diffs (44 lines):

diff -r 8dfad90eeee7 -r 31a7067955c3 sys/arch/sun3/sun3/locore2.c
--- a/sys/arch/sun3/sun3/locore2.c      Sat Feb 03 12:57:05 2001 +0000
+++ b/sys/arch/sun3/sun3/locore2.c      Sat Feb 03 12:59:48 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: locore2.c,v 1.75 2000/06/29 07:19:07 mrg Exp $ */
+/*     $NetBSD: locore2.c,v 1.76 2001/02/03 12:59:48 tsutsui Exp $     */
 
 /*-
  * Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -76,10 +76,9 @@
  * XXX: m68k common code needs these...
  * ... but this port does not need to deal with anything except
  * an mc68020, so these two variables are always ignored.
- * XXX: Need to do something about <m68k/include/cpu.h>
  */
-int cputype = 0;       /* CPU_68020 */
-int mmutype = 2;       /* MMU_SUN */
+int cputype = CPU_68020;
+int mmutype = MMU_SUN;
 
 /*
  * Now our own stuff.
diff -r 8dfad90eeee7 -r 31a7067955c3 sys/arch/sun3/sun3x/locore2.c
--- a/sys/arch/sun3/sun3x/locore2.c     Sat Feb 03 12:57:05 2001 +0000
+++ b/sys/arch/sun3/sun3x/locore2.c     Sat Feb 03 12:59:48 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: locore2.c,v 1.22 2000/06/29 07:19:13 mrg Exp $ */
+/*     $NetBSD: locore2.c,v 1.23 2001/02/03 12:59:48 tsutsui Exp $     */
 
 /*-
  * Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -71,10 +71,9 @@
  * XXX: m68k common code needs these...
  * ... but this port does not need to deal with anything except
  * an mc68030, so these two variables are always ignored.
- * XXX: Need to do something about <m68k/include/cpu.h>
  */
-int cputype =  1;      /* CPU_68030 */
-int mmutype = -1;      /* MMU_68030 */
+int cputype = CPU_68030;
+int mmutype = MMU_68030;
 
 /*
  * Now our own stuff.



Home | Main Index | Thread Index | Old Index