summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/cris/syscall.S
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/cris/syscall.S')
-rw-r--r--libc/sysdeps/linux/cris/syscall.S18
1 files changed, 18 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/cris/syscall.S b/libc/sysdeps/linux/cris/syscall.S
new file mode 100644
index 000000000..d52a6ba05
--- /dev/null
+++ b/libc/sysdeps/linux/cris/syscall.S
@@ -0,0 +1,18 @@
+#include <sys/syscall.h>
+
+ .globl __syscall_error
+__syscall_error:
+
+ neg.d $r10,$r10
+
+ push $r10
+ push $srp
+ jsr __errno_location
+ pop $srp
+ pop $r11
+ move.d $r11,[$r10]
+
+ moveq -1, $r10
+ ret
+ nop
+