X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/72c4af087f2950bb445ae0c9c439724efe9a0d0e..15c4dc5ace24e6081d1597b011148f156cdd599e:/bootrom/flash-reset.s diff --git a/bootrom/flash-reset.s b/bootrom/flash-reset.s index 64134033..a94d048a 100644 --- a/bootrom/flash-reset.s +++ b/bootrom/flash-reset.s @@ -1,43 +1,43 @@ -.extern CopyBootToRAM - -.section .startup,"ax" - .code 32 - .align 0 - -.global flashstart -flashstart: - b Reset - b UndefinedInstruction - b SoftwareInterrupt - b PrefetchAbort - b DataAbort - b Reserved - b Irq - b Fiq - -Reset: - 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, .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: - b UndefinedInstruction -SoftwareInterrupt: - b SoftwareInterrupt -PrefetchAbort: - b PrefetchAbort -DataAbort: - b DataAbort -Reserved: - b Reserved -Irq: - b Irq +.extern CopyBootToRAM + +.section .startup,"ax" + .code 32 + .align 0 + +.global flashstart +flashstart: + b Reset + b UndefinedInstruction + b SoftwareInterrupt + b PrefetchAbort + b DataAbort + b Reserved + b Irq + b Fiq + +Reset: + 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, .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: + b UndefinedInstruction +SoftwareInterrupt: + b SoftwareInterrupt +PrefetchAbort: + b PrefetchAbort +DataAbort: + b DataAbort +Reserved: + b Reserved +Irq: + b Irq