about summary refs log tree commit diff
path: root/crt/or1k/crtn.s
diff options
context:
space:
mode:
Diffstat (limited to 'crt/or1k/crtn.s')
-rw-r--r--crt/or1k/crtn.s9
1 files changed, 9 insertions, 0 deletions
diff --git a/crt/or1k/crtn.s b/crt/or1k/crtn.s
new file mode 100644
index 00000000..4185a027
--- /dev/null
+++ b/crt/or1k/crtn.s
@@ -0,0 +1,9 @@
+.section .init
+	l.lwz	r9,0(r1)
+	l.jr	r9
+	 l.addi	r1,r1,4
+
+.section .fini
+	l.lwz	r9,0(r1)
+	l.jr	r9
+	 l.addi	r1,r1,4