diff options
author | 2013-05-06 00:23:49 +0000 | |
---|---|---|
committer | 2013-05-06 00:23:49 +0000 | |
commit | 9cea5a4d20b399784136c8ceaebbc1e93a61aec9 (patch) | |
tree | ff358f68dd60445e71629b314014000774c0aeea /sys/kern/kern_rwlock.c | |
parent | the use of modern intel performance counter msrs to measure the number of (diff) | |
download | wireguard-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