summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2024-11-07 07:29:48 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2024-11-07 07:29:48 +0000
commitc666da7025d4c8fbae3b0d32d09053549a2b1f95 (patch)
tree9071bb5c5498cfd6544c6f8d0cbf562d71157387 /sys/arch
parent340e98a9ed7e10a893201baedfc21bdb5464668c (diff)
Remove two unnecessary instructions, at least one being a leftover from
debug code added in NetBSD 1.51 not being completely removed in 1.133, and which we have been carried since 1.1 here...
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/sparc64/sparc64/locore.s4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/arch/sparc64/sparc64/locore.s b/sys/arch/sparc64/sparc64/locore.s
index 2bc2fcda65f..9a00930ce39 100644
--- a/sys/arch/sparc64/sparc64/locore.s
+++ b/sys/arch/sparc64/sparc64/locore.s
@@ -1,4 +1,4 @@
-/* $OpenBSD: locore.s,v 1.227 2024/11/06 12:26:54 miod Exp $ */
+/* $OpenBSD: locore.s,v 1.228 2024/11/07 07:29:47 miod Exp $ */
/* $NetBSD: locore.s,v 1.137 2001/08/13 06:10:10 jdolecek Exp $ */
/*
@@ -3336,7 +3336,6 @@ sparc_interrupt:
sth %l5, [%sp + CC64FSZ + BIAS + TF_TT]! debug
stx %l0, [%sp + CC64FSZ + BIAS + TF_TSTATE] ! set up intrframe/clockframe
stx %l1, [%sp + CC64FSZ + BIAS + TF_PC]
- btst TSTATE_PRIV, %l0 ! User mode?
stx %l2, [%sp + CC64FSZ + BIAS + TF_NPC]
sub %l5, 0x40, %l6 ! Convert to interrupt level
@@ -3362,7 +3361,6 @@ sparc_intr_retry:
wrpr %g0, PSTATE_INTR, %pstate ! Reenable interrupts
sll %l6, 3, %l2
add %g7, CI_INTRPENDING, %l4
- mov 8, %l7
add %l2, %l4, %l4
1: