Getting closer to working Cortex M3 targets.
[goodfet] / firmware / lib / cortexm3.s
diff --git a/firmware/lib/cortexm3.s b/firmware/lib/cortexm3.s
new file mode 100644 (file)
index 0000000..cccf7c5
--- /dev/null
@@ -0,0 +1,15 @@
+  .syntax unified
+  .cpu cortex-m3
+  .fpu softvfp
+  .thumb
+
+
+.section  .text.Reset_Handler
+  .weak  Reset_Handler
+  .type  Reset_Handler, %function
+
+Reset_Handler:
+       mov r0, #0
+       ldr r13, =0x20002000
+       bl main
+