1 @
-----------------------------------------------------------------------------
2 @ Copyright
(C
) Jonathan Westhues
, Mar
2006
3 @ Copyright
(C
) Proxmark3 contributors. See AUTHORS.md for details.
5 @ This program is free software
: you can redistribute it
and/or modify
6 @ it under the terms of the GNU General Public License as published by
7 @ the Free Software Foundation
, either version
3 of the License
, or
8 @
(at your option
) any later version.
10 @ This program is distributed in the hope that it will
be useful
,
11 @ but WITHOUT ANY WARRANTY; without even the implied warranty of
12 @ MERCHANTABILITY
or FITNESS FOR
A PARTICULAR PURPOSE. See the
13 @ GNU General Public License for more details.
15 @ See LICENSE.txt for the text of the license.
16 @
-----------------------------------------------------------------------------
17 @ Reset vector for running from FLASH
18 @
-----------------------------------------------------------------------------
20 .section .startup,"ax"
27 b undefined_instruction
32 ldr pc
, [pc
,#-0xF20] @ IRQ - read the AIC
36 ldr sp
, =_stack_end @ initialize stack pointer to top of RAM
38 @ copy bootloader to RAM
(in case the user re-flashes the bootloader
)
39 ldr
r0, =__bootphase2_src_start__
40 ldr
r1, =__bootphase2_start__
41 ldr
r2, =__bootphase2_end__
48 ldr
r3, =ram_start @ start address of RAM bootloader
53 undefined_instruction
: