diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2018-09-24 11:25:10 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2018-09-24 11:25:10 +0000 |
commit | 3111384d4cc2062156e6cdbb402c61b8f206b914 (patch) | |
tree | 69e4912ac03aca1923653aa3c1c041422e5c6bb2 /lib | |
parent | a24dfa0ff6f17e2da8a5ac36917aa7a73b64cd45 (diff) |
enable futex(2) based mutexes on armv7 and use futex based semaphores in
librthread on armv7 as well
from brad ok visa@ kettenis@ mpi@
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/thread/Makefile.inc | 6 | ||||
-rw-r--r-- | lib/librthread/Makefile | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/lib/libc/thread/Makefile.inc b/lib/libc/thread/Makefile.inc index d2b42faca7a..a46221808f9 100644 --- a/lib/libc/thread/Makefile.inc +++ b/lib/libc/thread/Makefile.inc @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.inc,v 1.15 2018/05/19 12:27:33 mpi Exp $ +# $OpenBSD: Makefile.inc,v 1.16 2018/09/24 11:25:09 jsg Exp $ .PATH: ${LIBCSRCDIR}/thread @@ -19,8 +19,8 @@ notyet= rthread_condattr_clock.c \ spinlock.c \ spinlocktry.c -.if ${MACHINE_ARCH} == "aarch64" || \ - ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386" || \ +.if ${MACHINE_ARCH} == "aarch64" || ${MACHINE_ARCH} == "amd64" || \ + ${MACHINE_ARCH} == "arm" || ${MACHINE_ARCH} == "i386" || \ ${MACHINE_ARCH} == "mips64" || ${MACHINE_ARCH} == "mips64el" || \ ${MACHINE_ARCH} == "sparc64" CFLAGS+= -DFUTEX diff --git a/lib/librthread/Makefile b/lib/librthread/Makefile index 7d188db71da..c7d96c91ec2 100644 --- a/lib/librthread/Makefile +++ b/lib/librthread/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.50 2018/06/08 13:53:01 pirofti Exp $ +# $OpenBSD: Makefile,v 1.51 2018/09/24 11:25:09 jsg Exp $ LIB=pthread LIBCSRCDIR= ${.CURDIR}/../libc @@ -36,8 +36,8 @@ SRCS= rthread.c \ sched_prio.c # Architectures that implement atomics -.if ${MACHINE_ARCH} == "aarch64" || \ - ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386" || \ +.if ${MACHINE_ARCH} == "aarch64" || ${MACHINE_ARCH} == "amd64" || \ + ${MACHINE_ARCH} == "arm" || ${MACHINE_ARCH} == "i386" || \ ${MACHINE_ARCH} == "mips64" || ${MACHINE_ARCH} == "mips64el" || \ ${MACHINE_ARCH} == "sparc64" SRCS+= rthread_sem.c |