src/ssx/ppc405/ppc405_core.c
/// Disable interrupt preemption
///
/// This API can only be called from an interrupt context.  Threads will
/// always be preempted by interrupts unless they explicitly disable
/// interrupts with the \c ssx_interrupt_disable() API.  It is legal to call
/// this API redundantly.
///
/// Return values other then SSX_OK (0) are errors; see \ref ssx_errors
///
/// \retval 0 Successful completion
///
/// \retval -SSX_ILLEGAL_CONTEXT The API call was not made from an interrupt
/// context.
Disable interrupt preemption
This API can only be called from an interrupt context.  Threads will
always be preempted by interrupts unless they explicitly disable
interrupts with the \c ssx_interrupt_disable() API.  It is legal to call
this API redundantly.

Return values other then SSX_OK (0) are errors; see \ref ssx_errors

\retval 0 Successful completion

\retval -SSX_ILLEGAL_CONTEXT The API call was not made from an interrupt
context.
Disable interrupt preemption This API can only be called from an interrupt context . Threads will always be preempted by interrupts unless they explicitly disable interrupts with the \ c ssx_interrupt_disable () API . It is legal to call this API redundantly . Return values other then SSX_OK ( 0 ) are errors ; see \ ref ssx_errors \ retval 0 Successful completion \ retval - SSX_ILLEGAL_CONTEXT The API call was not made from an interrupt context .
int
ssx_interrupt_preemption_disable()
{
    if (SSX_ERROR_CHECK_API)
    {
        SSX_ERROR_UNLESS_ANY_INTERRUPT_CONTEXT();
    }
    if (__ssx_kernel_context_noncritical_interrupt())
    {
        wrteei(0);
    }
    else
    {
        andc_msr(MSR_CE);
    }
    return SSX_OK;
}
int ssx_interrupt_preemption_disable ( ) { if ( SSX_ERROR_CHECK_API ) { SSX_ERROR_UNLESS_ANY_INTERRUPT_CONTEXT ( ) ; } if ( __ssx_kernel_context_noncritical_interrupt ( ) ) { wrteei ( 0 ) ; } else { andc_msr ( MSR_CE ) ; } return SSX_OK ; }
Disable interrupt preemption
This API can only be called from an interrupt context.
Disable interrupt preemption This API can only be called from an interrupt context .