diff --git a/sys/arch/evbsh3/evbsh3/locore.S b/sys/arch/evbsh3/evbsh3/locore.S index 5209e1e7c0be..7aa0e12a1d73 100644 --- a/sys/arch/evbsh3/evbsh3/locore.S +++ b/sys/arch/evbsh3/evbsh3/locore.S @@ -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 +#include #include #include #include @@ -111,7 +112,7 @@ ALTENTRY(kernel_text) 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 @@ XLinitSH3: .long _C_LABEL(initSH3) 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: