]> cvs.zerfleddert.de Git - proxmark3-svn/blame - bootrom/flash-reset.s
Add a common linker script with the memory map for the complete project
[proxmark3-svn] / bootrom / flash-reset.s
CommitLineData
6658905f 1.extern CopyBootToRAM\r
2 \r
8652988d 3.section .startup,"ax"\r
4 .code 32\r
5 .align 0\r
6658905f 6\r
8652988d 7.global flashstart\r
8flashstart:\r
6658905f 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
18Reset:\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
25Fiq:\r
26 b Fiq\r
27UndefinedInstruction:\r
28 b UndefinedInstruction\r
29SoftwareInterrupt:\r
30 b SoftwareInterrupt\r
31PrefetchAbort:\r
32 b PrefetchAbort\r
33DataAbort:\r
34 b DataAbort\r
35Reserved:\r
36 b Reserved\r
37Irq:\r
38 b Irq\r
Impressum, Datenschutz