Modify the macros IMASK_UNLOCK, CPL_UNLOCK, and REL_FAST_INTR_LOCK

to perform the s_unlock inline.
This commit is contained in:
Alan Cox 1999-08-23 19:14:18 +00:00
parent 5262c12c2b
commit a236cb64a9
4 changed files with 9 additions and 19 deletions

View File

@ -1,6 +1,6 @@
/*
* from: vector.s, 386BSD 0.1 unknown origin
* $Id: apic_vector.s,v 1.42 1999/07/10 15:27:59 bde Exp $
* $Id: apic_vector.s,v 1.43 1999/07/20 06:52:35 msmith Exp $
*/
@ -18,9 +18,7 @@
addl $4,%esp
#define REL_FAST_INTR_LOCK \
pushl $_fast_intr_lock ; /* address of lock */ \
call _s_unlock ; /* MP-safe */ \
addl $4,%esp
movl $0, _fast_intr_lock
#else /* FAST_SIMPLELOCK */

View File

@ -1,6 +1,6 @@
/*
* from: vector.s, 386BSD 0.1 unknown origin
* $Id: apic_vector.s,v 1.42 1999/07/10 15:27:59 bde Exp $
* $Id: apic_vector.s,v 1.43 1999/07/20 06:52:35 msmith Exp $
*/
@ -18,9 +18,7 @@
addl $4,%esp
#define REL_FAST_INTR_LOCK \
pushl $_fast_intr_lock ; /* address of lock */ \
call _s_unlock ; /* MP-safe */ \
addl $4,%esp
movl $0, _fast_intr_lock
#else /* FAST_SIMPLELOCK */

View File

@ -22,7 +22,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: lock.h,v 1.7 1999/07/12 15:02:51 kris Exp $
* $Id: lock.h,v 1.8 1999/08/22 05:37:18 alc Exp $
*/
@ -68,9 +68,7 @@
addl $4, %esp
#define IMASK_UNLOCK \
pushl $_imen_lock ; /* address of lock */ \
call _s_unlock ; /* MP-safe */ \
addl $4, %esp
movl $0, _imen_lock
/*
* Variations of CPL_LOCK protect spl updates as a critical region.
@ -94,9 +92,7 @@
addl $4, %esp
#define CPL_UNLOCK \
pushl $_cpl_lock ; /* address of lock */ \
call _s_unlock ; /* MP-safe */ \
addl $4, %esp
movl $0, _cpl_lock
/*
* INT safe version for top half of kernel.

View File

@ -1,6 +1,6 @@
/*
* from: vector.s, 386BSD 0.1 unknown origin
* $Id: apic_vector.s,v 1.42 1999/07/10 15:27:59 bde Exp $
* $Id: apic_vector.s,v 1.43 1999/07/20 06:52:35 msmith Exp $
*/
@ -18,9 +18,7 @@
addl $4,%esp
#define REL_FAST_INTR_LOCK \
pushl $_fast_intr_lock ; /* address of lock */ \
call _s_unlock ; /* MP-safe */ \
addl $4,%esp
movl $0, _fast_intr_lock
#else /* FAST_SIMPLELOCK */