i386: Fix build and remove empty unused macro
When inlining the macro, reg was not substituted with the %ecx argument
previously passed in. One of the definitions was also left behind as an
empty macro.
PR: 292883
Fixes: 377c053a43 ("cpu_switch(): unconditionally wait on the blocked mutex transient")
MFC after: 1 week
This commit is contained in:
@@ -34,8 +34,6 @@
|
||||
|
||||
#include "assym.inc"
|
||||
|
||||
#define BLOCK_SPIN(reg) \
|
||||
|
||||
/*****************************************************************************/
|
||||
/* Scheduling */
|
||||
/*****************************************************************************/
|
||||
@@ -170,7 +168,7 @@ sw1:
|
||||
100:
|
||||
|
||||
lock
|
||||
cmpxchgl %eax,TD_LOCK(reg)
|
||||
cmpxchgl %eax,TD_LOCK(%ecx)
|
||||
jne 101f
|
||||
pause
|
||||
jmp 100b
|
||||
|
||||
Reference in New Issue
Block a user