Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/evbsh3/evbsh3 Use symbolic constants for SR and CCR...
details: https://anonhg.NetBSD.org/src/rev/06050a1f94a9
branches: trunk
changeset: 935872:06050a1f94a9
user: uwe <uwe%NetBSD.org@localhost>
date: Sun Jul 12 03:52:51 2020 +0000
description:
Use symbolic constants for SR and CCR init values.
Same object code is generated.
diffstat:
sys/arch/evbsh3/evbsh3/locore.S | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diffs (37 lines):
diff -r d480ae9ec253 -r 06050a1f94a9 sys/arch/evbsh3/evbsh3/locore.S
--- a/sys/arch/evbsh3/evbsh3/locore.S Sun Jul 12 03:37:06 2020 +0000
+++ b/sys/arch/evbsh3/evbsh3/locore.S Sun Jul 12 03:52:51 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: locore.S,v 1.12 2020/07/12 01:52:22 uwe Exp $ */
+/* $NetBSD: locore.S,v 1.13 2020/07/12 03:52:51 uwe Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@@ -81,6 +81,7 @@
#endif
#include <sh3/asm.h>
+#include <sh3/psl.h>
#include <sh3/exception.h>
#include <sh3/locore.h>
#include <sh3/mmu_sh3.h>
@@ -111,7 +112,7 @@
bra start1
nop
.align 2
-SR_init: .long 0x500000F0
+SR_init: .long PSL_MD | PSL_BL | PSL_IMASK
REG_SYMBOL(MMUCR)
start1:
@@ -230,8 +231,8 @@
XLmain: .long _C_LABEL(main)
XLtoP2: .long 0x20000000
REG_SYMBOL(CCR)
-#ifdef SH4
-XL_CCRVAL: .long 0x0909 /* Operand cache ON */
+#ifdef SH4 /* invalidate and enable instruction and operand caches */
+XL_CCRVAL: .long SH4_CCR_ICI | SH4_CCR_ICE | SH4_CCR_OCI | SH4_CCR_OCE
#endif /* SH4 */
load_and_reset:
Home |
Main Index |
Thread Index |
Old Index