From 5f0f0913b3e8ee27b4be6deea8f9f001f545cf32 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Wed, 14 Mar 2012 01:36:13 +0100 Subject: Simplify splx * i386/i386/spl.S (splx): Use S_ARG0 instead of reimplementing it. --- i386/i386/spl.S | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/i386/i386/spl.S b/i386/i386/spl.S index f1d4b45f..3c075092 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 */ -- cgit v1.2.3