From 5538e50bc46a1402f7c3b955ca5c74adc1d91cc9 Mon Sep 17 00:00:00 2001 From: Patrick Georgi Date: Thu, 26 Mar 2015 14:09:07 +0100 Subject: armv4: Build in SMP settings with non-SMP armv4 CPUs There are some ARMv8/ARMv4 SoC where the ARMv8 part needs to be SMP aware but the ARMv4 part does not. Until we need real SMP on ARMv4, work around that situation with stub defines. Change-Id: Iec5b4302b19c17fe2b3f677b84a8edf4b4902946 Signed-off-by: Patrick Georgi Reviewed-on: http://review.coreboot.org/9046 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer --- src/arch/arm/include/armv4/arch/smp/spinlock.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/arch/arm/include/armv4/arch/smp/spinlock.h (limited to 'src/arch/arm') diff --git a/src/arch/arm/include/armv4/arch/smp/spinlock.h b/src/arch/arm/include/armv4/arch/smp/spinlock.h new file mode 100644 index 0000000000..f458ec37bb --- /dev/null +++ b/src/arch/arm/include/armv4/arch/smp/spinlock.h @@ -0,0 +1,15 @@ +#ifndef _ARCH_SMP_SPINLOCK_H +#define _ARCH_SMP_SPINLOCK_H + +#define DECLARE_SPIN_LOCK(x) +#define barrier() do {} while(0) +#define spin_is_locked(lock) 0 +#define spin_unlock_wait(lock) do {} while(0) +#define spin_lock(lock) do {} while(0) +#define spin_unlock(lock) do {} while(0) +#define cpu_relax() do {} while(0) + +#include +#define boot_cpu() 1 + +#endif -- cgit v1.2.3