summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCatalin Marinas <catalin.marinas@arm.com>2010-01-08 13:53:28 +0000
committerCatalin Marinas <catalin.marinas@arm.com>2010-01-08 13:53:28 +0000
commit6440df235ea863e2cd15356809d744364a4940ce (patch)
tree2250b96289a9e734d92152d025f99d66a3978604
parentccc9098a6f1b1fc2bbefd21ce0e2037263e104dd (diff)
Add explicit support for SMP
-rw-r--r--Makefile1
-rw-r--r--boot.S2
2 files changed, 3 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 4bdaa7d..8e4648b 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,6 @@
# Build an ELF linux+filesystem image
+CPPFLAGS += -DSMP
#CPPFLAGS += -DUSE_INITRD
#CPPFLAGS += -DTHUMB2_KERNEL
diff --git a/boot.S b/boot.S
index e977a39..a200bc5 100644
--- a/boot.S
+++ b/boot.S
@@ -21,6 +21,7 @@
.globl _start
_start:
+#ifdef SMP
@
@ CPU initialisation
@
@@ -42,6 +43,7 @@ _start:
cmp r1, #0
beq 1b
mov pc, r1 @ branch to the given address
+#endif
@
@ UART initialisation (38400 8N1)