aboutsummaryrefslogtreecommitdiff
path: root/linuxthreads/spinlock.c
diff options
context:
space:
mode:
Diffstat (limited to 'linuxthreads/spinlock.c')
-rw-r--r--linuxthreads/spinlock.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/linuxthreads/spinlock.c b/linuxthreads/spinlock.c
index 63f2ed1..f284b58 100644
--- a/linuxthreads/spinlock.c
+++ b/linuxthreads/spinlock.c
@@ -88,6 +88,7 @@ again:
return;
}
}
+ __asm __volatile ("" : "=m" (lock->__status) : "0" (lock->__status));
}
lock->__spinlock += (spin_count - lock->__spinlock) / 8;