]> git.zerfleddert.de Git - proxmark3-svn/blame - bootrom/flash-reset.s
Split str* and mem* into string.[ch]
[proxmark3-svn] / bootrom / flash-reset.s
CommitLineData
15c4dc5a 1.extern CopyBootToRAM
e30c654b 2
15c4dc5a 3.section .startup,"ax"
4 .code 32
5 .align 0
6
7.global flashstart
8flashstart:
9 b Reset
10 b UndefinedInstruction
11 b SoftwareInterrupt
12 b PrefetchAbort
13 b DataAbort
14 b Reserved
15 b Irq
16 b Fiq
17
18Reset:
19 ldr sp, .stack_end @ initialize stack pointer to top of RAM
20 bl CopyBootToRAM @ copy bootloader to RAM (in case the
21 @ user re-flashes the bootloader)
22 ldr r3, .bootphase2_start @ start address of RAM bootloader
23 bx r3 @ jump to it
24
25 .stack_end:
26 .word _stack_end
27 .bootphase2_start:
28 .word __bootphase2_start__
29
30Fiq:
31 b Fiq
32UndefinedInstruction:
33 b UndefinedInstruction
34SoftwareInterrupt:
35 b SoftwareInterrupt
36PrefetchAbort:
37 b PrefetchAbort
38DataAbort:
39 b DataAbort
40Reserved:
41 b Reserved
42Irq:
43 b Irq
Impressum, Datenschutz