ref: 1647696236f2d10e70cd8a0fc2a04fabfa5f63a6
parent: 6269cdd5f81371d04f7def12c764619c14c0d206
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sat Jul 8 13:48:02 EDT 2023
pc: skip CLI/STI when not needed
--- a/sys/src/9/pc/l.s
+++ b/sys/src/9/pc/l.s
@@ -653,8 +653,8 @@
MOVL $(MACHADDR+0x04), CX /* save PC in m->splpc */
MOVL (SP), BX
MOVL BX, (CX)
-alreadyhi:
CLI
+alreadyhi:
RET
TEXT spllo(SB), $0
@@ -665,8 +665,8 @@
JNZ alreadylo
MOVL $(MACHADDR+0x04), CX /* clear m->splpc */
MOVL $0, (CX)
-alreadylo:
STI
+alreadylo:
RET
TEXT splx(SB), $0