]> oss.titaniummirror.com Git - msp430-libc.git/blobdiff - src/stdlib/__stop_progexec__.S
Imported msp430-libc-20100207
[msp430-libc.git] / src / stdlib / __stop_progexec__.S
diff --git a/src/stdlib/__stop_progexec__.S b/src/stdlib/__stop_progexec__.S
new file mode 100644 (file)
index 0000000..da4999e
--- /dev/null
@@ -0,0 +1,26 @@
+/*****************************************************************
+ * return from main.
+ * can be overwriten by user function with the same name
+ *****************************************************************/
+        .section .fini9, "ax", @progbits
+
+        .weak  __stop_progExec__
+        .func   __stop_progExec__
+
+__stop_progExec__:
+
+        .endfunc
+
+/*****************************************************************
+ * endless loop
+ * can be overwriten by user together with __stop_progExec__
+ * this function always linked together with __stop_progExec__,
+ * because both are located in single source file.
+ *****************************************************************/
+        .section .fini0, "ax", @progbits
+
+        .func   _endless_loop__
+_endless_loop__:
+        jmp  _endless_loop__
+
+        .endfunc