diff options
author | 2013-05-15 08:29:23 +0000 | |
---|---|---|
committer | 2013-05-15 08:29:23 +0000 | |
commit | 886882aa351014ee6327856abc38783ed424cc33 (patch) | |
tree | 4586fba8ba53f1557ce65e528644f37e4f608e9b /lib/libc | |
parent | Add support for Intel E7221 integrated graphics. (diff) | |
download | wireguard-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