]> xenbits.xensource.com Git - qemu-xen.git/commit
bsd-user: align use of mmap_lock to that of linux-user
authorAlex Bennée <alex.bennee@linaro.org>
Mon, 20 Mar 2017 14:36:47 +0000 (14:36 +0000)
committerAlex Bennée <alex.bennee@linaro.org>
Tue, 28 Mar 2017 09:50:40 +0000 (10:50 +0100)
commit95992b674c43339d0b313dd79fa8cc45ba22eab8
tree146c3445f5149e7ca6115d09351e3958cf0aca20
parent02bed6bd5f45819f1557a4b04db300a72383ecdb
bsd-user: align use of mmap_lock to that of linux-user

The introduction of stricter mmap_lock checking in translate-all broke
the BSD user build. The working mmap_lock functions were hidden behind
CONFIG_USE_NPTL which is never defined. This patch brings them inline
with linux-user.

Despite the disapearence of the comment "We aren't threadsafe to start
with..." this doesn't make bsd-user so. It will still need the rest of
the fixes that have been done in linux-user ported over.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
bsd-user/mmap.c
bsd-user/qemu.h