summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_rwlock.c
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2013-05-06 00:23:49 +0000
committerguenther <guenther@openbsd.org>2013-05-06 00:23:49 +0000
commit9cea5a4d20b399784136c8ceaebbc1e93a61aec9 (patch)
treeff358f68dd60445e71629b314014000774c0aeea /sys/kern/kern_rwlock.c
parentthe use of modern intel performance counter msrs to measure the number of (diff)
downloadwireguard-openbsd-9cea5a4d20b399784136c8ceaebbc1e93a61aec9.tar.xz
wireguard-openbsd-9cea5a4d20b399784136c8ceaebbc1e93a61aec9.zip
If the lock is contended, such that the 'sc' fails, then we need to
reset the %2 register with _SPINLOCK_LOCKED before retrying. tobiasu@ hit the problem and figured out that ".set noreorder" is needed in the ASM
Diffstat (limited to 'sys/kern/kern_rwlock.c')
0 files changed, 0 insertions, 0 deletions