src/ssx/ppc405/ppc405_mmu.c
/// Reset the PPC405 simple MMU translation/protection scheme
///
/// This API invalidates the TLB, clears the zone protection register, and
/// otherwise resets the SSX simple translation/protcetion scheme for the
/// PPC405.  The application must not be running in a translated mode when
/// this API is invoked.
///
/// \retval 0 Success
///
/// \retval -PPC405_MMU_ILLEGAL_CONTEXT The API was called with translation
/// enabled.
Reset the PPC405 simple MMU translation/protection scheme
This API invalidates the TLB, clears the zone protection register, and
otherwise resets the SSX simple translation/protcetion scheme for the
PPC405.  The application must not be running in a translated mode when
this API is invoked.

\retval 0 Success

\retval -PPC405_MMU_ILLEGAL_CONTEXT The API was called with translation
enabled.
Reset the PPC405 simple MMU translation / protection scheme This API invalidates the TLB clears the zone protection register and otherwise resets the SSX simple translation / protcetion scheme for the PPC405 . The application must not be running in a translated mode when this API is invoked . \ retval 0 Success \ retval - PPC405_MMU_ILLEGAL_CONTEXT The API was called with translation enabled .
int
ppc405_mmu_reset()
{
    if (SSX_ERROR_CHECK_API)
    {
        SSX_ERROR_IF(mfmsr() & (MSR_IR | MSR_DR),
                     PPC405_MMU_ILLEGAL_CONTEXT);
    }
    tlbia();
    mtspr(SPRN_PID, 0);
    mtspr(SPRN_ZPR, 0);
    __ppc405_tlb_free = 0xffffffffffffffffull;
    isync();
    return 0;
}
int ppc405_mmu_reset ( ) { if ( SSX_ERROR_CHECK_API ) { SSX_ERROR_IF ( mfmsr ( ) & ( MSR_IR | MSR_DR ) , PPC405_MMU_ILLEGAL_CONTEXT ) ; } tlbia ( ) ; mtspr ( SPRN_PID , 0 ) ; mtspr ( SPRN_ZPR , 0 ) ; __ppc405_tlb_free = 0xffffffffffffffffull ; isync ( ) ; return 0 ; }
Reset the PPC405 simple MMU translation/protection scheme
This API invalidates the TLB, clears the zone protection register, and
otherwise resets the SSX simple translation/protcetion scheme for the
PPC405.
Reset the PPC405 simple MMU translation / protection scheme This API invalidates the TLB clears the zone protection register and otherwise resets the SSX simple translation / protcetion scheme for the PPC405 .