summaryrefslogtreecommitdiff
path: root/lib/libc/arch/or1k/return_one.S
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/arch/or1k/return_one.S')
-rw-r--r--lib/libc/arch/or1k/return_one.S12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/libc/arch/or1k/return_one.S b/lib/libc/arch/or1k/return_one.S
new file mode 100644
index 000000000000..ba3d678974f9
--- /dev/null
+++ b/lib/libc/arch/or1k/return_one.S
@@ -0,0 +1,12 @@
+/* $NetBSD: return_one.S,v 1.1 2014/09/03 19:34:26 matt Exp $ */
+
+#include <machine/asm.h>
+
+.globl return_one, return_one_end
+
+ENTRY_NP(return_one)
+ l.addi r11, r0, 1
+ l.jr lr
+ l.nop
+return_one_end:
+END(return_one)