X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/8652988d62b19631e498b62a3800f0decb5e743a..dcc10e5e310a9e652e698593b7ba34bacbdd2b80:/bootrom/flash-reset.s diff --git a/bootrom/flash-reset.s b/bootrom/flash-reset.s index 48c111a7..64134033 100644 --- a/bootrom/flash-reset.s +++ b/bootrom/flash-reset.s @@ -16,12 +16,17 @@ flashstart: b Fiq Reset: - ldr sp, = 0x0020FFF8 @ initialize stack pointer to top of RAM + ldr sp, .stack_end @ initialize stack pointer to top of RAM bl CopyBootToRAM @ copy bootloader to RAM (in case the @ user re-flashes the bootloader) - ldr r3, = 0x00200000 @ start address of RAM bootloader + ldr r3, .bootphase2_start @ start address of RAM bootloader bx r3 @ jump to it + .stack_end: + .word _stack_end + .bootphase2_start: + .word __bootphase2_start__ + Fiq: b Fiq UndefinedInstruction: