]> git.zerfleddert.de Git - proxmark3-svn/blob - bootrom/flash-reset.s
Implement version information storage and retrieval for the bootrom and the osimage.
[proxmark3-svn] / bootrom / flash-reset.s
1 .extern CopyBootToRAM
2
3 .section .startup,"ax"
4 .code 32
5 .align 0
6
7 .global flashstart
8 flashstart:
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
18 Reset:
19 ldr sp, = 0x0020FFF8 @ 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, = 0x00200000 @ start address of RAM bootloader
23 bx r3 @ jump to it
24
25 Fiq:
26 b Fiq
27 UndefinedInstruction:
28 b UndefinedInstruction
29 SoftwareInterrupt:
30 b SoftwareInterrupt
31 PrefetchAbort:
32 b PrefetchAbort
33 DataAbort:
34 b DataAbort
35 Reserved:
36 b Reserved
37 Irq:
38 b Irq
Impressum, Datenschutz