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 Use MIPS_EBASE_CPUNUM instead of magic nu...
details: https://anonhg.NetBSD.org/src/rev/79a9202cbf40
branches: trunk
changeset: 1012034:79a9202cbf40
user: simonb <simonb%NetBSD.org@localhost>
date: Mon Jul 20 03:23:42 2020 +0000
description:
Use MIPS_EBASE_CPUNUM instead of magic numbers.
diffstat:
sys/arch/mips/mips/locore.S | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 83173f17695c -r 79a9202cbf40 sys/arch/mips/mips/locore.S
--- a/sys/arch/mips/mips/locore.S Mon Jul 20 03:22:39 2020 +0000
+++ b/sys/arch/mips/mips/locore.S Mon Jul 20 03:23:42 2020 +0000
@@ -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 @@
//
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
Home |
Main Index |
Thread Index |
Old Index