Welcome to mirror list, hosted at ThFree Co, Russian Federation.

exit-64-001.c « mt « libgloss - cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 97c7b8ce7c11fd9d783d25a27f10a1228a11fd55 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#include <_ansi.h>
#include <sys/types.h>
#include <sys/stat.h>


void _exit (n)
{
  /* Set bit #0 in the _DEBUG_HALT_REG to trigger program exit to
     the simulator. (The simulator will return a SIGQUIT signal.)  */
  asm("ori r1, r0, #$1\n");
  asm("stw r1, r0, #$300\n");
}