From 140783ef66eef379feedcfef5403c5729d38936a Mon Sep 17 00:00:00 2001 From: Amaury Pouly Date: Sat, 13 Jul 2013 17:35:53 +0200 Subject: hwstub: split target specific code from the common part Completely rewrite the Mafile, properly put the usb driver in its own file and the target specific files in a subdirectory. Change-Id: Iaeee0128e021d5dad76b4d6035a63e33e2d946c1 --- utils/hwstub/stub/crt0.S | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 utils/hwstub/stub/crt0.S (limited to 'utils/hwstub/stub/crt0.S') diff --git a/utils/hwstub/stub/crt0.S b/utils/hwstub/stub/crt0.S new file mode 100644 index 0000000000..e2d4742d36 --- /dev/null +++ b/utils/hwstub/stub/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