From 11da9d23fe323ce452fcd04a10a0ddf78eaa63ea Mon Sep 17 00:00:00 2001 From: Amaury Pouly Date: Wed, 12 Jun 2013 19:46:04 +0200 Subject: imxtools: move hwemul to its own directory The hwemul is only partly imx specific: the stub is stmp specific but could be ported to other targets, the computer side and the protocol are mostly stmp independent (or should be). Change-Id: If88febffe591b0de86ea11cb740455ba20ddc401 --- utils/hwstub/stmp/crt0.S | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 utils/hwstub/stmp/crt0.S (limited to 'utils/hwstub/stmp/crt0.S') diff --git a/utils/hwstub/stmp/crt0.S b/utils/hwstub/stmp/crt0.S new file mode 100644 index 0000000000..e2d4742d36 --- /dev/null +++ b/utils/hwstub/stmp/crt0.S @@ -0,0 +1,17 @@ +.section .text,"ax",%progbits +.code 32 +.align 0x04 +.global start +start: + msr cpsr_c, #0xd3 /* enter supervisor mode, disable IRQ/FIQ */ + ldr sp, =oc_stackend + /* clear bss */ + ldr r2, =bss_start + ldr r3, =bss_end + mov r4, #0 +1: + cmp r3, r2 + strhi r4, [r2], #4 + bhi 1b + /* jump to C code */ + b main -- cgit v1.2.3