]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - bootrom/flash-reset.s
Initial commit for the firmware. Used the 20090306_ela version as baseline.
[proxmark3-svn] / bootrom / flash-reset.s
diff --git a/bootrom/flash-reset.s b/bootrom/flash-reset.s
new file mode 100644 (file)
index 0000000..afb658a
--- /dev/null
@@ -0,0 +1,38 @@
+.extern CopyBootToRAM\r
+    \r
+.text\r
+.code 32\r
+.align 0\r
+\r
+.global start\r
+start:\r
+    b       Reset\r
+    b       UndefinedInstruction\r
+    b       SoftwareInterrupt\r
+    b       PrefetchAbort\r
+    b       DataAbort\r
+    b       Reserved\r
+    b       Irq\r
+    b       Fiq\r
+\r
+Reset:\r
+    ldr     sp,     = 0x0020FFF8       @ initialize stack pointer to top of RAM\r
+    bl      CopyBootToRAM                      @ copy bootloader to RAM (in case the\r
+                                                               @ user re-flashes the bootloader)\r
+    ldr     r3,     = 0x00200000       @ start address of RAM bootloader\r
+    bx      r3                                         @ jump to it\r
+\r
+Fiq:\r
+    b       Fiq\r
+UndefinedInstruction:\r
+    b       UndefinedInstruction\r
+SoftwareInterrupt:\r
+    b       SoftwareInterrupt\r
+PrefetchAbort:\r
+    b       PrefetchAbort\r
+DataAbort:\r
+    b       DataAbort\r
+Reserved:\r
+    b       Reserved\r
+Irq:\r
+    b       Irq\r
Impressum, Datenschutz