4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-01-16 03:19:54 +08:00
Jeff Johnston 2c4ef10a55 2004-03-11 Kazu Hirata <kazu@cs.umass.edu>
* libc/sys/h8300hms/Makefile.am (lib_a_SOURCES): Replace
        _exit.c with _exit.S.
        * libc/sys/h8300hms/Makefile.in: Regenerate.
        * libc/sys/h8300hms/_exit.c: Remove.
        * libc/sys/h8300hms/_exit.S: New.
2004-03-11 21:18:31 +00:00

18 lines
342 B
ArmAsm

#include "setarch.h"
/* `sleep' is passed an argument in r0 that indicates the reason
the program is exiting. The format of r0 is defined in
devo/include/wait.h. */
/* extern void _exit (int rc); */
.section .text
.align 2
.global __exit
__exit:
mov.w #0xdead,r1
mov.w #0xbeef,r2
mov.b r0l,r0h
sub.b r0l,r0l
sleep