diff options
author | Visa Hankala <visa@cvs.openbsd.org> | 2018-05-04 15:45:12 +0000 |
---|---|---|
committer | Visa Hankala <visa@cvs.openbsd.org> | 2018-05-04 15:45:12 +0000 |
commit | 8552cd98060d6ffd16a669d0b1fe7d53dba26ac2 (patch) | |
tree | 7420f066991faa6335e55e9449872e8ccb481dc5 /sys/arch | |
parent | cfca32ff8e2d2582f8100f31efdd8de6129373a8 (diff) |
Fix WITNESS build on arm64.
OK guenther@
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/arm64/arm64/mem.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/arm64/arm64/mem.c b/sys/arch/arm64/arm64/mem.c index 0b82310539d..ace9d6699df 100644 --- a/sys/arch/arm64/arm64/mem.c +++ b/sys/arch/arm64/arm64/mem.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mem.c,v 1.5 2018/02/19 08:59:52 mpi Exp $ */ +/* $OpenBSD: mem.c,v 1.6 2018/05/04 15:45:11 visa Exp $ */ /* $NetBSD: mem.c,v 1.11 2003/10/16 12:02:58 jdolecek Exp $ */ /* @@ -97,6 +97,7 @@ static int ap_open_count = 0; extern int allowaperture; #endif +static struct rwlock physlock = RWLOCK_INITIALIZER("mmrw"); int mmopen(dev_t dev, int flag, int mode, struct proc *p) @@ -143,7 +144,6 @@ mmclose(dev_t dev, int flag, int mode, struct proc *p) int mmrw(dev_t dev, struct uio *uio, int flags) { - static struct rwlock physlock = RWLOCK_INITIALIZER("mmrw"); vaddr_t o, v; size_t c; struct iovec *iov; |