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