URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [tags/] [gnu-src/] [newlib-1.18.0/] [newlib-1.18.0-or32-1.0rc1/] [libgloss/] [mt/] [exit-16-002.c] - Rev 435
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"); }
Go to most recent revision | Compare with Previous | Blame | View Log