summaryrefslogtreecommitdiff
path: root/newlib/libc/sys/sysvnecv70/cerror.s
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/sys/sysvnecv70/cerror.s')
-rw-r--r--newlib/libc/sys/sysvnecv70/cerror.s9
1 files changed, 9 insertions, 0 deletions
diff --git a/newlib/libc/sys/sysvnecv70/cerror.s b/newlib/libc/sys/sysvnecv70/cerror.s
new file mode 100644
index 00000000000..9827c1087a1
--- /dev/null
+++ b/newlib/libc/sys/sysvnecv70/cerror.s
@@ -0,0 +1,9 @@
+ .globl cerror
+cerror: mov.w r0,_errno
+ neg.w #1,r0
+ ret #0
+
+ .data
+ .globl _errno
+_errno: .word 0
+