Module Name: src
Committed By: simonb
Date: Mon Jul 20 03:23:43 UTC 2020
Modified Files:
src/sys/arch/mips/mips: locore.S
Log Message:
Use MIPS_EBASE_CPUNUM instead of magic numbers.
To generate a diff of this commit:
cvs rdiff -u -r1.222 -r1.223 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.222 src/sys/arch/mips/mips/locore.S:1.223
--- src/sys/arch/mips/mips/locore.S:1.222 Wed Jan 8 20:59:19 2020
+++ src/sys/arch/mips/mips/locore.S Mon Jul 20 03:23:42 2020
@@ -1,4 +1,4 @@
-/* $NetBSD: locore.S,v 1.222 2020/01/08 20:59:19 skrll Exp $ */
+/* $NetBSD: locore.S,v 1.223 2020/07/20 03:23:42 simonb Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -63,7 +63,7 @@
#include <mips/trap.h>
#include <mips/locore.h>
-RCSID("$NetBSD: locore.S,v 1.222 2020/01/08 20:59:19 skrll Exp $")
+RCSID("$NetBSD: locore.S,v 1.223 2020/07/20 03:23:42 simonb Exp $")
#include "assym.h"
@@ -119,7 +119,7 @@ _C_LABEL(kernel_text):
//
mfc0 a0, MIPS_COP_0_EBASE # EBASE
COP0_SYNC
- ext a1, a0, 0, 10 # get CPU number
+ andi a1, a0, MIPS_EBASE_CPUNUM # fetch cpunum
beqz a1, 2f # normal startup if 0
nop
#ifdef MULTIPROCESSOR