Module Name: src
Committed By: skrll
Date: Thu Sep 5 15:48:13 UTC 2019
Modified Files:
src/sys/arch/mips/mips: locore.S
Log Message:
Fix a maya fix so that cobalt boots again.
Set MIPS_COP_0_CAUSE to zero before the rest of the initialisation
To generate a diff of this commit:
cvs rdiff -u -r1.219 -r1.220 src/sys/arch/mips/mips/locore.S
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/mips/mips/locore.S
diff -u src/sys/arch/mips/mips/locore.S:1.219 src/sys/arch/mips/mips/locore.S:1.220
--- src/sys/arch/mips/mips/locore.S:1.219 Fri Sep 7 21:14:45 2018
+++ src/sys/arch/mips/mips/locore.S Thu Sep 5 15:48:13 2019
@@ -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 @@ RCSID("$NetBSD: locore.S,v 1.219 2018/09
.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 @@ _C_LABEL(kernel_text):
/* 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)