mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-15 19:09:58 +08:00
2c4ef10a55
* 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.
18 lines
342 B
ArmAsm
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
|