Changeset View
Changeset View
Standalone View
Standalone View
sys/i386/i386/swtch.s
Show All 30 Lines | |||||
* | * | ||||
* $FreeBSD$ | * $FreeBSD$ | ||||
*/ | */ | ||||
#include "opt_sched.h" | #include "opt_sched.h" | ||||
#include <machine/asmacros.h> | #include <machine/asmacros.h> | ||||
#include "assym.s" | #include "assym.inc" | ||||
#if defined(SMP) && defined(SCHED_ULE) | #if defined(SMP) && defined(SCHED_ULE) | ||||
#define SETOP xchgl | #define SETOP xchgl | ||||
#define BLOCK_SPIN(reg) \ | #define BLOCK_SPIN(reg) \ | ||||
movl $blocked_lock,%eax ; \ | movl $blocked_lock,%eax ; \ | ||||
100: ; \ | 100: ; \ | ||||
lock ; \ | lock ; \ | ||||
cmpxchgl %eax,TD_LOCK(reg) ; \ | cmpxchgl %eax,TD_LOCK(reg) ; \ | ||||
▲ Show 20 Lines • Show All 424 Lines • Show Last 20 Lines |