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: lockf: Fix adding a new lock over multiple locks
[newlib-cygwin.git]
/
libgloss
/
mt
/
exit-ms2.c
blob
93a3f852b2c2e93e4aec3f4979ab2402bf2ad4fd
1
#include <_ansi.h>
2
#include <sys/types.h>
3
#include <sys/stat.h>
4
5
6
void
_exit
(
n
)
7
{
8
// Set bit #0 in the _DEBUG_HALT_REG to trigger program exit to
9
// the simulator. (The simulator will return a SIGQUIT signal.)
10
asm
(
"ori r1, r0, #$1
\n
"
);
11
asm
(
"stw r1, r0, #$fffff300
\n
"
);
12
}
// exit