Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/mips/mips Fix a maya fix so that cobalt boots again.



details:   https://anonhg.NetBSD.org/src/rev/a1de66d69dc4
branches:  trunk
changeset: 454110:a1de66d69dc4
user:      skrll <skrll%NetBSD.org@localhost>
date:      Thu Sep 05 15:48:13 2019 +0000

description:
Fix a maya fix so that cobalt boots again.

Set MIPS_COP_0_CAUSE to zero before the rest of the initialisation

diffstat:

 sys/arch/mips/mips/locore.S |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (38 lines):

diff -r c46e0c56ed69 -r a1de66d69dc4 sys/arch/mips/mips/locore.S
--- a/sys/arch/mips/mips/locore.S       Thu Sep 05 13:33:11 2019 +0000
+++ b/sys/arch/mips/mips/locore.S       Thu Sep 05 15:48:13 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: locore.S,v 1.219 2018/09/07 21:14:45 macallan Exp $    */
+/*     $NetBSD: locore.S,v 1.220 2019/09/05 15:48:13 skrll Exp $       */
 
 /*
  * Copyright (c) 1992, 1993
@@ -63,7 +63,7 @@
 #include <mips/trap.h>
 #include <mips/locore.h>
 
-RCSID("$NetBSD: locore.S,v 1.219 2018/09/07 21:14:45 macallan Exp $")
+RCSID("$NetBSD: locore.S,v 1.220 2019/09/05 15:48:13 skrll Exp $")
 
 #include "assym.h"
 
@@ -73,10 +73,10 @@
        .globl  _C_LABEL(kernel_text)           # libkvm refers this
 start:
 _C_LABEL(kernel_text):
+       /* First disable the interrupts only, for safety */
        mfc0    k0, MIPS_COP_0_STATUS
        MFC0_HAZARD
 
-       /* First disable the interrupts only, for safety */
        and     k0, ~MIPS_SR_INT_IE
        mtc0    k0, MIPS_COP_0_STATUS
        COP0_SYNC
@@ -85,6 +85,7 @@
        /* Leaving TS | RE alone (for emips) */
        and     k0, MIPS_SR_TS | MIPS3_SR_RE
        mtc0    k0, MIPS_COP_0_STATUS
+       mtc0    zero, MIPS_COP_0_CAUSE
        COP0_SYNC
 
 #if defined(_LP64) 



Home | Main Index | Thread Index | Old Index