src/lib/ppc405lib/stdlib.c
/// 'Exit' an application
///
///  An SSX application can not really 'exit'.  By convention, exit(0) is the
///  same as ssx_halt().  Calling exit() with a non-zero code causes a kernel
///  panic - the exit code will be found in R3 on PowerPC.
///
///  Note that to exit a thread, the thread can either return from the thread
///  entry routine or explicitly call ssx_complete().  exit() was implemented
///  to allow porting of the EEMBC benchmarks.
'Exit' an application
An SSX application can not really 'exit'.  By convention, exit(0) is the
same as ssx_halt().  Calling exit() with a non-zero code causes a kernel
panic - the exit code will be found in R3 on PowerPC.

Note that to exit a thread, the thread can either return from the thread
entry routine or explicitly call ssx_complete().  exit() was implemented
to allow porting of the EEMBC benchmarks.
' Exit ' an application An SSX application can not really ' exit ' . By convention exit ( 0 ) is the same as ssx_halt () . Calling exit () with a non - zero code causes a kernel panic - the exit code will be found in R3 on PowerPC . Note that to exit a thread the thread can either return from the thread entry routine or explicitly call ssx_complete () . exit () was implemented to allow porting of the EEMBC benchmarks .
void
exit(int status)
{
    if (status) {
        SSX_PANIC(ERROR_EXIT);
    } 
    ssx_halt();
}
void exit ( int status ) { if ( status ) { SSX_PANIC ( ERROR_EXIT ) ; } ssx_halt ( ) ; }
'Exit' an application
An SSX application can not really 'exit'.
' Exit ' an application An SSX application can not really ' exit ' .