summaryrefslogtreecommitdiffstats
path: root/arch/mips/boot
diff options
context:
space:
mode:
authorAntony Pavlov <antonynpavlov@gmail.com>2012-05-10 13:35:11 +0400
committerSascha Hauer <s.hauer@pengutronix.de>2012-05-11 09:04:49 +0200
commit2a9d94a81e8d24b519848897a68eb66a5e53fa6f (patch)
treea4d14dffb570bc0a9db49748908df47dc8b21b84 /arch/mips/boot
parent3ad4b670a9d72902d60d271768fb6510755a2620 (diff)
downloadbarebox-2a9d94a81e8d24b519848897a68eb66a5e53fa6f.tar.gz
barebox-2a9d94a81e8d24b519848897a68eb66a5e53fa6f.tar.xz
MIPS: start.S: add "barebox" label at _start + 0x10
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/mips/boot')
-rw-r--r--arch/mips/boot/start.S12
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/mips/boot/start.S b/arch/mips/boot/start.S
index b756d40d3d..e8868e1dc0 100644
--- a/arch/mips/boot/start.S
+++ b/arch/mips/boot/start.S
@@ -25,6 +25,8 @@
#include <asm/mipsregs.h>
#include <asm/asm.h>
#include <asm-generic/memory_layout.h>
+#include <generated/compile.h>
+#include <generated/utsrelease.h>
/*
* ADR macro instruction (inspired by ARM)
@@ -52,6 +54,16 @@ _pc: addiu \rd, ra, \label - _pc # label is assumed to be
.align 4
EXPORT(_start)
+
+ b __start
+ nop
+
+ .org 0x10
+ .ascii "barebox " UTS_RELEASE " " UTS_VERSION
+ .byte 0
+
+ .align 4
+__start:
/* disable watchpoints */
mtc0 zero, CP0_WATCHLO
mtc0 zero, CP0_WATCHHI