diff options
author | Eric Andersen <andersen@codepoet.org> | 2001-01-12 10:16:05 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2001-01-12 10:16:05 +0000 |
commit | 77879554671206102471bb282accb3251395d151 (patch) | |
tree | 4bc8854140028577b324e3ddaf05d043744618a3 /libc/sysdeps/linux/m68k/crt0.s | |
parent | e4492b9c21b645018b2d7702665be8c1eb4a1b5c (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/crt0.s')
-rw-r--r-- | libc/sysdeps/linux/m68k/crt0.s | 68 |
1 files changed, 68 insertions, 0 deletions
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 + + |