Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/hp300/hp300 Replace a couple of magic numbers with ...
details: https://anonhg.NetBSD.org/src/rev/a7e75d98cd81
branches: trunk
changeset: 749952:a7e75d98cd81
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Sun Dec 13 12:21:26 2009 +0000
description:
Replace a couple of magic numbers with proper macro.
diffstat:
sys/arch/hp300/hp300/genassym.cf | 4 +++-
sys/arch/hp300/hp300/locore.s | 6 +++---
2 files changed, 6 insertions(+), 4 deletions(-)
diffs (45 lines):
diff -r eb16186cb21e -r a7e75d98cd81 sys/arch/hp300/hp300/genassym.cf
--- a/sys/arch/hp300/hp300/genassym.cf Sun Dec 13 11:24:02 2009 +0000
+++ b/sys/arch/hp300/hp300/genassym.cf Sun Dec 13 12:21:26 2009 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: genassym.cf,v 1.40 2009/12/10 05:10:01 rmind Exp $
+# $NetBSD: genassym.cf,v 1.41 2009/12/13 12:21:26 tsutsui Exp $
#
# Copyright (c) 1982, 1990, 1993
@@ -203,6 +203,8 @@
define MMU_CEN MMU_CEN
define MMU_IEN MMU_IEN
define MMU_FPE MMU_FPE
+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 eb16186cb21e -r a7e75d98cd81 sys/arch/hp300/hp300/locore.s
--- a/sys/arch/hp300/hp300/locore.s Sun Dec 13 11:24:02 2009 +0000
+++ b/sys/arch/hp300/hp300/locore.s Sun Dec 13 12:21:26 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: locore.s,v 1.151 2009/12/13 11:24:02 tsutsui Exp $ */
+/* $NetBSD: locore.s,v 1.152 2009/12/13 12:21:26 tsutsui Exp $ */
/*
* Copyright (c) 1980, 1990, 1993
@@ -205,7 +205,7 @@
/* determine our CPU/MMU combo - check for all regardless of kernel config */
movl #INTIOBASE+MMUBASE,%a1
- 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?
@@ -528,7 +528,7 @@
movl #0x8000,%d0
#endif
.long 0x4e7b0003 | movc %d0,%tc
- movl #0x80008000,%d0
+ movl #CACHE40_ON,%d0
movc %d0,%cacr | turn on both caches
jmp Lenab1:l | forced not be pc-relative
Lmotommu2:
Home |
Main Index |
Thread Index |
Old Index