repo.or.cz
/
newlib-cygwin.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Cygwin: Add new APIs tc[gs]etwinsize()
[newlib-cygwin.git]
/
newlib
/
libc
/
sys
/
h8300hms
/
_exit.S
blob
7fac3d3442b27ded9cedc36385012d63a47a5beb
1
#include "setarch.h"
2
3
/* `sleep' is passed an argument in r0 that indicates the reason
4
the program is exiting. The format of r0 is defined in
5
devo/include/wait.h. */
6
7
/* extern void _exit (int rc); */
8
9
.section .text
10
.align 2
11
.global __exit
12
__exit:
13
mov.w #0xdead,r1
14
mov.w #0xbeef,r2
15
mov.b r0l,r0h
16
sub.b r0l,r0l
17
sleep