summaryrefslogtreecommitdiff
path: root/i386
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2012-03-14 01:36:13 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2012-03-14 01:36:13 +0100
commit5f0f0913b3e8ee27b4be6deea8f9f001f545cf32 (patch)
treed5282329174fc917345d207ecf23281d6857e749 /i386
parent5f701793f63f16d111db3e3d2e91134fcc179c5b (diff)
Simplify splx
* i386/i386/spl.S (splx): Use S_ARG0 instead of reimplementing it.
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 */