From 77879554671206102471bb282accb3251395d151 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Fri, 12 Jan 2001 10:16:05 +0000 Subject: Thanks to James Graves , we now have a first pass at getting m68k working. It may have some problems, but should now be fairly close. --- libc/sysdeps/linux/m68k/errno.s | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 libc/sysdeps/linux/m68k/errno.s (limited to 'libc/sysdeps/linux/m68k/errno.s') 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 -- cgit v1.2.3