From b22853b2f4bdd1ed31d601ebd331083d67d40f11 Mon Sep 17 00:00:00 2001 From: Palmer Dabbelt Date: Tue, 13 Jun 2017 15:14:38 -0700 Subject: Add a SMP example This just prints "hello world" on two cores. It contains an example of how to initialize a multi-core system using IPIs, and a simple spin lock. --- software/smp/Makefile | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 software/smp/Makefile (limited to 'software/smp/Makefile') diff --git a/software/smp/Makefile b/software/smp/Makefile new file mode 100644 index 0000000..4131ffc --- /dev/null +++ b/software/smp/Makefile @@ -0,0 +1,6 @@ +TARGET = smp +C_SRCS += smp.c +CFLAGS += -O2 -fno-builtin-printf -DENABLE_SMP + +BSP_BASE = ../../bsp +include $(BSP_BASE)/env/common.mk -- cgit v1.2.1-18-gbd029