Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/luna68k/luna68k Replace two magic numbers with macr...
details: https://anonhg.NetBSD.org/src/rev/316a554221c4
branches: trunk
changeset: 770990:316a554221c4
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Sat Nov 05 15:37:17 2011 +0000
description:
Replace two magic numbers with macro via assym.h.
diffstat:
sys/arch/luna68k/luna68k/genassym.cf | 4 +++-
sys/arch/luna68k/luna68k/locore.s | 6 +++---
2 files changed, 6 insertions(+), 4 deletions(-)
diffs (45 lines):
diff -r 4a411c339b69 -r 316a554221c4 sys/arch/luna68k/luna68k/genassym.cf
--- a/sys/arch/luna68k/luna68k/genassym.cf Sat Nov 05 15:33:18 2011 +0000
+++ b/sys/arch/luna68k/luna68k/genassym.cf Sat Nov 05 15:37:17 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: genassym.cf,v 1.19 2011/01/14 02:06:27 rmind Exp $
+# $NetBSD: genassym.cf,v 1.20 2011/11/05 15:37:17 tsutsui Exp $
#
# Copyright (c) 1982, 1990, 1993
@@ -149,6 +149,8 @@
# magic
define FC_USERD FC_USERD
define FC_SUPERD FC_SUPERD
+define DC_FREEZE DC_FREEZE
+define CACHE40_ON CACHE40_ON
define CACHE_ON CACHE_ON
define CACHE_OFF CACHE_OFF
define CACHE_CLR CACHE_CLR
diff -r 4a411c339b69 -r 316a554221c4 sys/arch/luna68k/luna68k/locore.s
--- a/sys/arch/luna68k/luna68k/locore.s Sat Nov 05 15:33:18 2011 +0000
+++ b/sys/arch/luna68k/luna68k/locore.s Sat Nov 05 15:37:17 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: locore.s,v 1.41 2011/11/05 15:33:18 tsutsui Exp $ */
+/* $NetBSD: locore.s,v 1.42 2011/11/05 15:37:17 tsutsui Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -147,7 +147,7 @@
movc %d0,%cacr | clear and disable on-chip cache(s)
/* determine our CPU/MMU combo - check for all regardless of kernel config */
- movl #0x200,%d0 | data freeze bit
+ movl #DC_FREEZE,%d0 | data freeze bit
movc %d0,%cacr | only exists on 68030
movc %cacr,%d0 | read it back
tstl %d0 | zero?
@@ -252,7 +252,7 @@
RELOC(proto040tc,%a0)
movl %a0@,%d0
.long 0x4e7b0003 | movc %d0,%tc
- movl #0x80008000,%d0
+ movl #CACHE40_ON,%d0
movc %d0,%cacr | turn on both caches
jmp Lenab1
Lmotommu1:
Home |
Main Index |
Thread Index |
Old Index