Source-Changes-HG archive

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

[src/netbsd-1-5]: src/sys/arch/evbsh3/evbsh3 Pullup revision 1.22 (approved b...



details:   https://anonhg.NetBSD.org/src/rev/5de28301fc6b
branches:  netbsd-1-5
changeset: 489159:5de28301fc6b
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Mon Aug 21 18:18:23 2000 +0000

description:
Pullup revision 1.22 (approved by thorpej):

 set MMUCR register correctly when CPU==SH4

diffstat:

 sys/arch/evbsh3/evbsh3/locore.s |  11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)

diffs (46 lines):

diff -r 3bdbcedba030 -r 5de28301fc6b sys/arch/evbsh3/evbsh3/locore.s
--- a/sys/arch/evbsh3/evbsh3/locore.s   Mon Aug 21 18:12:43 2000 +0000
+++ b/sys/arch/evbsh3/evbsh3/locore.s   Mon Aug 21 18:18:23 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: locore.s,v 1.17.2.2 2000/08/12 19:06:17 msaitoh Exp $  */
+/*     $NetBSD: locore.s,v 1.17.2.3 2000/08/21 18:18:23 msaitoh Exp $  */
 
 /*-
  * Copyright (c) 1993, 1994, 1995, 1997
@@ -989,7 +989,7 @@
        mov.l   @r0, r2
        or      r1, r2
 #ifdef SH4
-       mov.l   XL_MMUCR_VBITS,r1
+       mov.l   XL_MMUCR_VBITS, r1
        and     r1, r2
 #endif
        mov.l   r2, @r0
@@ -1032,7 +1032,6 @@
 XXXLcurproc:   .long   _C_LABEL(curproc)
 XL_ConvVtoP:   .long   _ConvVtoP
 XL_KernelSp:   .long   KernelSp
-XL_MMUCR_VBITS:        .long   0xfcfcff05
 XL_SHREG_TTB:  .long   SHREG_TTB
 /*
  * switch_exit(struct proc *p);
@@ -1074,6 +1073,10 @@
        mov     #4, r1
        mov.l   @r0, r2
        or      r1, r2
+#ifdef SH4
+       mov.l   XL_MMUCR_VBITS, r1
+       and     r1, r2
+#endif
        mov.l   r2, @r0
 
        /* Record new pcb. */
@@ -1101,6 +1104,8 @@
        .globl  _C_LABEL(exit2)
 XLexit2:
        .long   _C_LABEL(exit2)
+XL_MMUCR_VBITS:
+       .long   0xfcfcff05
 XXL_SHREG_MMUCR:
        .long   SHREG_MMUCR
 XXLP_ADDR:



Home | Main Index | Thread Index | Old Index