]> git.zerfleddert.de Git - proxmark3-svn/blame - bootrom/flash-reset.s
Add license headers to armsrc/bootrom/common stuff
[proxmark3-svn] / bootrom / flash-reset.s
CommitLineData
bd20f8f4 1@-----------------------------------------------------------------------------
2@ This code is licensed to you under the terms of the GNU GPL, version 2 or,
3@ at your option, any later version. See the LICENSE.txt file for the text of
4@ the license.
5@-----------------------------------------------------------------------------
6@ Reset vector for running from FLASH
7@-----------------------------------------------------------------------------
8
15c4dc5a 9.extern CopyBootToRAM
e30c654b 10
15c4dc5a 11.section .startup,"ax"
12 .code 32
13 .align 0
14
15.global flashstart
16flashstart:
17 b Reset
18 b UndefinedInstruction
19 b SoftwareInterrupt
20 b PrefetchAbort
21 b DataAbort
22 b Reserved
23 b Irq
24 b Fiq
25
26Reset:
27 ldr sp, .stack_end @ initialize stack pointer to top of RAM
28 bl CopyBootToRAM @ copy bootloader to RAM (in case the
29 @ user re-flashes the bootloader)
30 ldr r3, .bootphase2_start @ start address of RAM bootloader
31 bx r3 @ jump to it
32
33 .stack_end:
34 .word _stack_end
35 .bootphase2_start:
36 .word __bootphase2_start__
37
38Fiq:
39 b Fiq
40UndefinedInstruction:
41 b UndefinedInstruction
42SoftwareInterrupt:
43 b SoftwareInterrupt
44PrefetchAbort:
45 b PrefetchAbort
46DataAbort:
47 b DataAbort
48Reserved:
49 b Reserved
50Irq:
51 b Irq
Impressum, Datenschutz