[coreboot-gerrit] New patch to review for coreboot: 37b4715 armv4: Build in SMP settings with non-SMP armv4 CPUs

Patrick Georgi (pgeorgi@google.com) gerrit at coreboot.org
Thu Mar 26 14:12:04 CET 2015


Patrick Georgi (pgeorgi at google.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/9046

-gerrit

commit 37b47152f87294803bd0871b03f1b70ab0d63163
Author: Patrick Georgi <pgeorgi at chromium.org>
Date:   Thu Mar 26 14:09:07 2015 +0100

    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 <pgeorgi at chromium.org>
---
 src/arch/arm/include/armv4/arch/smp/spinlock.h | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

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 0000000..f458ec3
--- /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 <smp/node.h>
+#define boot_cpu() 1
+
+#endif



More information about the coreboot-gerrit mailing list