summaryrefslogtreecommitdiff
path: root/arch/blackfin/cpu/init.S
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2011-05-07 21:55:04 (GMT)
committerMike Frysinger <vapier@gentoo.org>2011-07-12 06:17:45 (GMT)
commitfb5166ce35de489c8a96f3696e208eaae6a5a8d8 (patch)
tree82f4ddc19fc7a05e6689722981a99445581f1b72 /arch/blackfin/cpu/init.S
parent08a82a447b2a89d705edba952612d00c84129cb8 (diff)
downloadu-boot-fb5166ce35de489c8a96f3696e208eaae6a5a8d8.tar.xz
Blackfin: add init.elf helper code
This creates a standalone ELF that executes just the Blackfin initcode. This is useful for people who want to program the low level aspects of the CPU (memory/clocks/etc...) and can easily be used with JTAG for quick booting while developing. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'arch/blackfin/cpu/init.S')
-rw-r--r--arch/blackfin/cpu/init.S9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/blackfin/cpu/init.S b/arch/blackfin/cpu/init.S
new file mode 100644
index 0000000..f48c113
--- /dev/null
+++ b/arch/blackfin/cpu/init.S
@@ -0,0 +1,9 @@
+#include <asm/blackfin.h>
+ENTRY(_start)
+ sp.l = LO(L1_SRAM_SCRATCH_END - 20);
+ sp.h = HI(L1_SRAM_SCRATCH_END - 20);
+ call _initcode;
+1:
+ emuexcpt;
+ jump 1b;
+END(_start)