source: trunk/libs/newlib/src/libgloss/mt/exit-64-001.c @ 612

Last change on this file since 612 was 444, checked in by satin@…, 6 years ago

add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc

File size: 279 bytes
Line 
1#include <_ansi.h>
2#include <sys/types.h>
3#include <sys/stat.h>
4
5
6void _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, #$300\n");
12}
Note: See TracBrowser for help on using the repository browser.