From 2979c69791f37714b5050d3a3879708ef22b5143 Mon Sep 17 00:00:00 2001 From: Stephen White Date: Sun, 30 Dec 2018 14:15:10 +1100 Subject: [PATCH] Fixed compile errors for other Pi builds. --- src/SpinLock.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/SpinLock.cpp b/src/SpinLock.cpp index af9a27d..ba37754 100644 --- a/src/SpinLock.cpp +++ b/src/SpinLock.cpp @@ -18,8 +18,7 @@ // along with this program. If not, see . // #include "SpinLock.h" - -//#ifdef HAS_MULTICORE +#include "defs.h" bool SpinLock::s_bEnabled = true; @@ -34,6 +33,7 @@ SpinLock::~SpinLock(void) void SpinLock::Acquire(void) { +#ifdef HAS_MULTICORE if (s_bEnabled) { // See: ARMv7-A Architecture Reference Manual, Section D7.3 @@ -52,10 +52,12 @@ void SpinLock::Acquire(void) : : "r" ((u32)&m_bLocked) ); } +#endif } void SpinLock::Release(void) { +#ifdef HAS_MULTICORE if (s_bEnabled) { // See: ARMv7-A Architecture Reference Manual, Section D7.3 @@ -71,6 +73,6 @@ void SpinLock::Release(void) : : "r" ((u32)&m_bLocked) ); } +#endif } -//#endif