summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorratchov <ratchov@openbsd.org>2013-05-15 08:29:23 +0000
committerratchov <ratchov@openbsd.org>2013-05-15 08:29:23 +0000
commit886882aa351014ee6327856abc38783ed424cc33 (patch)
tree4586fba8ba53f1557ce65e528644f37e4f608e9b /lib/libc
parentAdd support for Intel E7221 integrated graphics. (diff)
downloadwireguard-openbsd-886882aa351014ee6327856abc38783ed424cc33.tar.xz
wireguard-openbsd-886882aa351014ee6327856abc38783ed424cc33.zip
Introduce a global interrupt-aware mutex protecting data
structures (including sound-card registers) from concurent access by syscall and interrupt code-paths. Since critical sections remain the same, calls to splraise/spllower can be safely replaced by calls to mtx_enter/mtx_leave with two exceptions: (1) mutexes are not reentrant (the inner splraise is thus removed), and (2) we're not allowed to sleep with a mutex (either msleep is used or the mutex is released before sleeping). ok and help from kettenis, a lot of work from armani
Diffstat (limited to 'lib/libc')
0 files changed, 0 insertions, 0 deletions