src/ppe/pk/kernel/pk_thread_core.c
/// Start PK threads
///
/// This routine starts the PK thread scheduler infrastructure. This routine
/// must be called after a call of \c pk_initialize().  This routine never
/// returns. Interrupt (+ timer) only configurations of PK need not call this
/// routine.
///
/// Note: This tiny routine is considered a 'core' routine so that the
/// initialziation code can safely recover all 'init' code space before
/// starting threads.
///
/// This routine typically does not return - any return value indicates an
/// error; see \ref pk_errors
///
/// \retval -PK_ILLEGAL_CONTEXT_THREAD The API was called twice.
Start PK threads
This routine starts the PK thread scheduler infrastructure. This routine
must be called after a call of \c pk_initialize().  This routine never
returns. Interrupt (+ timer) only configurations of PK need not call this
routine.

This tiny routine is considered a 'core' routine so that the
initialziation code can safely recover all 'init' code space before
starting threads.

This routine typically does not return - any return value indicates an
error; see \ref pk_errors

\retval -PK_ILLEGAL_CONTEXT_THREAD The API was called twice.
Start PK threads This routine starts the PK thread scheduler infrastructure . This routine must be called after a call of \ c pk_initialize () . This routine never returns . Interrupt ( + timer ) only configurations of PK need not call this routine . This tiny routine is considered a ' core ' routine so that the initialziation code can safely recover all ' init ' code space before starting threads . This routine typically does not return - any return value indicates an error ; see \ ref pk_errors \ retval - PK_ILLEGAL_CONTEXT_THREAD The API was called twice .
int
pk_start_threads(void)
{
    if (PK_ERROR_CHECK_API) {
        PK_ERROR_IF(__pk_kernel_mode_thread(), PK_ILLEGAL_CONTEXT_THREAD);
    }
    __pk_call_pk_start_threads();
    return 0;
}
int pk_start_threads ( void ) { if ( PK_ERROR_CHECK_API ) { PK_ERROR_IF ( __pk_kernel_mode_thread ( ) , PK_ILLEGAL_CONTEXT_THREAD ) ; } __pk_call_pk_start_threads ( ) ; return 0 ; }
Start PK threads
This routine starts the PK thread scheduler infrastructure.
Start PK threads This routine starts the PK thread scheduler infrastructure .