From 34ed0a740bff2fa58e7f04da10fcfca26dfac432 Mon Sep 17 00:00:00 2001 From: Karl Palsson Date: Fri, 4 Apr 2014 20:19:37 +0000 Subject: [PATCH] sync: use matching #ifdefs in source as in header Fixes github issue #298 --- lib/cm3/sync.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/cm3/sync.c b/lib/cm3/sync.c index c4fbe6d8..906138ab 100644 --- a/lib/cm3/sync.c +++ b/lib/cm3/sync.c @@ -26,9 +26,7 @@ void __dmb() } /* Those are defined only on CM3 or CM4 */ -#if defined(__ARM_ARCH_6M__) -/* no work around for cm0 */ -#else +#if defined(__ARM_ARCH_7M__) || defined(__ARM_ARCH_7EM__) uint32_t __ldrex(volatile uint32_t *addr) {