URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 158 |
Rev 816 |
#include <_ansi.h>
|
#include <_ansi.h>
|
#include <sys/types.h>
|
#include <sys/types.h>
|
#include <sys/stat.h>
|
#include <sys/stat.h>
|
|
|
|
|
void _exit (n)
|
void _exit (n)
|
{
|
{
|
/* Set bit #0 in the _DEBUG_HALT_REG to trigger program exit to
|
/* Set bit #0 in the _DEBUG_HALT_REG to trigger program exit to
|
the simulator. (The simulator will return a SIGQUIT signal.) */
|
the simulator. (The simulator will return a SIGQUIT signal.) */
|
asm("ori r1, r0, #$1\n");
|
asm("ori r1, r0, #$1\n");
|
asm("stw r1, r0, #$fffff300\n");
|
asm("stw r1, r0, #$fffff300\n");
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.