OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [newlib-1.18.0/] [libgloss/] [mt/] [exit-ms2.c] - Rev 557

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

#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, #$fffff300\n");
}  // exit
 

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

powered by: WebSVN 2.1.0

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