Use the new FEAT_LDREX to replace ARMV6/ARMV7
This commit is contained in:
parent
8a7d14d1c2
commit
2260871018
@ -1,4 +1,4 @@
|
||||
# $NetBSD: Makefile.rumpkern,v 1.137 2014/02/18 06:18:13 pooka Exp $
|
||||
# $NetBSD: Makefile.rumpkern,v 1.138 2014/02/28 14:19:25 matt Exp $
|
||||
#
|
||||
|
||||
.include "${RUMPTOP}/Makefile.rump"
|
||||
@ -220,7 +220,7 @@ KERNMISCCPPFLAGS+= -D_RUMPKERNEL
|
||||
# compare-and-swap. This is because the kernel version is using
|
||||
# instructions or routines unavailable to us in userspace.
|
||||
#
|
||||
.if (${MACHINE_CPU} == "arm" && empty(ARMV6) && empty(ARMV7)) \
|
||||
.if (${MACHINE_CPU} == "arm" && "${FEAT_LDREX}" != "yes") \
|
||||
|| ${MACHINE_ARCH} == "coldfire" || ${MACHINE_CPU} == "hppa" \
|
||||
|| ${MACHINE_CPU} == "mips" || ${MACHINE_CPU} == "sh3" \
|
||||
|| ${MACHINE_ARCH} == "vax" || ${MACHINE_ARCH} == "m68000"
|
||||
|
Loading…
Reference in New Issue
Block a user