]>
Commit | Line | Data |
---|---|---|
1 | .extern CopyBootToRAM\r | |
2 | \r | |
3 | .section .startup,"ax"\r | |
4 | .code 32\r | |
5 | .align 0\r | |
6 | \r | |
7 | .global flashstart\r | |
8 | flashstart:\r | |
9 | b Reset\r | |
10 | b UndefinedInstruction\r | |
11 | b SoftwareInterrupt\r | |
12 | b PrefetchAbort\r | |
13 | b DataAbort\r | |
14 | b Reserved\r | |
15 | b Irq\r | |
16 | b Fiq\r | |
17 | \r | |
18 | Reset:\r | |
19 | ldr sp, = 0x0020FFF8 @ initialize stack pointer to top of RAM\r | |
20 | bl CopyBootToRAM @ copy bootloader to RAM (in case the\r | |
21 | @ user re-flashes the bootloader)\r | |
22 | ldr r3, = 0x00200000 @ start address of RAM bootloader\r | |
23 | bx r3 @ jump to it\r | |
24 | \r | |
25 | Fiq:\r | |
26 | b Fiq\r | |
27 | UndefinedInstruction:\r | |
28 | b UndefinedInstruction\r | |
29 | SoftwareInterrupt:\r | |
30 | b SoftwareInterrupt\r | |
31 | PrefetchAbort:\r | |
32 | b PrefetchAbort\r | |
33 | DataAbort:\r | |
34 | b DataAbort\r | |
35 | Reserved:\r | |
36 | b Reserved\r | |
37 | Irq:\r | |
38 | b Irq\r |