Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/evbsh3/evbsh3 Don't write SR twice.
details: https://anonhg.NetBSD.org/src/rev/e3cb5c158c28
branches: trunk
changeset: 936536:e3cb5c158c28
user: uwe <uwe%NetBSD.org@localhost>
date: Tue Jul 28 21:25:48 2020 +0000
description:
Don't write SR twice.
__INTR_MASK sets PSL_IMASK bits in SR but then in the next instruction
we overwrite SR anyway, so drop that redundant __INTR_MASK.
diffstat:
sys/arch/evbsh3/evbsh3/locore.S | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
diffs (21 lines):
diff -r c6e42c799877 -r e3cb5c158c28 sys/arch/evbsh3/evbsh3/locore.S
--- a/sys/arch/evbsh3/evbsh3/locore.S Tue Jul 28 20:57:59 2020 +0000
+++ b/sys/arch/evbsh3/evbsh3/locore.S Tue Jul 28 21:25:48 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: locore.S,v 1.14 2020/07/28 20:36:43 uwe Exp $ */
+/* $NetBSD: locore.S,v 1.15 2020/07/28 21:25:48 uwe Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@@ -97,10 +97,7 @@
/* Set SP to initial position */
mov.l XLtmpstk, r15
- /* Mask all interrupt */
- __INTR_MASK(r0, r1)
-
- /* Set Register Bank to Bank 0 */
+ /* Set Status Register */
mov.l SR_init, r0
ldc r0, sr
Home |
Main Index |
Thread Index |
Old Index