OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [newlib-1.17.0/] [libgloss/] [mt/] [exit-16-003.c] - Blame information for rev 822

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 148 jeremybenn
#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
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.