Add start file
[arm/overo-bwio.git] / ts7800.S
1 .global ts7800_start
2 ts7800_start:
3   bl zero_bss
4   bl main
5   b reboot
6
7 zero_bss:
8   mov r3, #0
9   ldr r1, =__bss_start__
10   ldr r2, =__bss_end__
11
12 zero_bss_loop:
13   cmp r1, r2
14   bxhs lr
15   strb r3, [r1], #1
16   b zero_bss_loop
17
18 reboot:
19   b .