aboutsummaryrefslogtreecommitdiff
path: root/i386
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2023-02-08 19:51:56 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2023-02-08 19:52:09 +0100
commita9c54f2c7f93127517b725952e67697bd82a7eeb (patch)
tree99691e943075dfea9b61c11f6ceb85f0efa8c89f /i386
parentee5f05310f42a09fa274a3229ff840b639e93a1a (diff)
downloadgnumach-a9c54f2c7f93127517b725952e67697bd82a7eeb.tar.gz
gnumach-a9c54f2c7f93127517b725952e67697bd82a7eeb.tar.bz2
gnumach-a9c54f2c7f93127517b725952e67697bd82a7eeb.zip
i386: relax CPU within spinlock loop
Diffstat (limited to 'i386')
-rw-r--r--i386/i386/lock.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/i386/i386/lock.h b/i386/i386/lock.h
index 8efa0ca0..90f2d69a 100644
--- a/i386/i386/lock.h
+++ b/i386/i386/lock.h
@@ -59,7 +59,7 @@
({ \
while(_simple_lock_xchg_(l, 1)) \
while (*(volatile int *)&(l)->lock_data) \
- continue; \
+ __asm ("pause"); \
0; \
})