summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/m68k/errno.s
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-01-12 10:16:05 +0000
committerEric Andersen <andersen@codepoet.org>2001-01-12 10:16:05 +0000
commit77879554671206102471bb282accb3251395d151 (patch)
tree4bc8854140028577b324e3ddaf05d043744618a3 /libc/sysdeps/linux/m68k/errno.s
parente4492b9c21b645018b2d7702665be8c1eb4a1b5c (diff)
Thanks to James Graves <jgraves@deltamobile.com>, we now have
a first pass at getting m68k working. It may have some problems, but should now be fairly close.
Diffstat (limited to 'libc/sysdeps/linux/m68k/errno.s')
-rw-r--r--libc/sysdeps/linux/m68k/errno.s27
1 files changed, 27 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/m68k/errno.s b/libc/sysdeps/linux/m68k/errno.s
new file mode 100644
index 000000000..bfd80af73
--- /dev/null
+++ b/libc/sysdeps/linux/m68k/errno.s
@@ -0,0 +1,27 @@
+ .file "errno.c"
+gcc2_compiled.:
+__gnu_compiled_c:
+.globl errno
+.data
+ .even
+errno:
+ .long 0
+.text
+ .even
+ .def __errno_location; .val __errno_location; .scl 2; .type 0144; .endef
+.globl __errno_location
+__errno_location:
+ .def .bf; .val .; .scl 101; .line 7; .endef
+ link.w %a6,#0
+ .ln 2
+ lea errno(%a5),%a0
+ move.l %a0,%d1
+ move.l %d1,%d0
+ bra .L1
+ .ln 3
+.L1:
+ .def .ef; .val .; .scl 101; .line 3; .endef
+ unlk %a6
+ rts
+ .def __errno_location; .val .; .scl -1; .endef
+ .def errno; .val errno; .scl 2; .type 04; .endef