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/crt0.s | 68 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 libc/sysdeps/linux/m68k/crt0.s (limited to 'libc/sysdeps/linux/m68k/crt0.s') diff --git a/libc/sysdeps/linux/m68k/crt0.s b/libc/sysdeps/linux/m68k/crt0.s new file mode 100644 index 000000000..87bc173d8 --- /dev/null +++ b/libc/sysdeps/linux/m68k/crt0.s @@ -0,0 +1,68 @@ +# 1 "crt0.S" + + + + + + + + + + + + + + + + + + + + .global _start + .global __main + .global _end + + + .bss + .global environ +environ: + .long 0 + + .text +_start: + nop + nop + + movea.l %d5, %a5 + + lea __bss_start(%a5), %a0 + lea end(%a5), %a1 + + + + + + + + + + + + + + move.l 8(%sp), %d5 + move.l %d5, environ(%a5) + + bsr main + + move.l %d0,%sp@- + bsr exit + +# 69 "crt0.S" + + + .global _cleanup +_cleanup: + rts + + -- cgit v1.2.3