summaryrefslogtreecommitdiff
path: root/i386
diff options
context:
space:
mode:
Diffstat (limited to 'i386')
-rw-r--r--i386/i386/spl.S4
1 files changed, 2 insertions, 2 deletions
diff --git a/i386/i386/spl.S b/i386/i386/spl.S
index f1d4b45..3c07509 100644
--- a/i386/i386/spl.S
+++ b/i386/i386/spl.S
@@ -143,7 +143,7 @@ ENTRY(spl7)
SETIPL(SPL7)
ENTRY(splx)
- movl 4(%esp),%edx /* get ipl */
+ movl S_ARG0,%edx /* get ipl */
testl %edx,%edx /* spl0? */
jz EXT(spl0) /* yes, handle specially */
cmpl EXT(curr_ipl),%edx /* same ipl as current? */
@@ -160,7 +160,7 @@ ENTRY(splx)
.align TEXT_ALIGN
.globl splx_cli
splx_cli:
- movl 4(%esp),%edx /* get ipl */
+ movl S_ARG0,%edx /* get ipl */
cli /* disable interrupts */
testl %edx,%edx /* spl0? */
jnz 2f /* no, skip */