src/ssx/ppc405/ppc405_core.c
/// Get the 64-bit timebase following the PowerPC protocol
///
/// Note that the only way to guarantee that the value returned is the value
/// \e right \e now is to call this API from a critical section.
Get the 64-bit timebase following the PowerPC protocol
Note that the only way to guarantee that the value returned is the value
\e right \e now is to call this API from a critical section.
Get the 64 - bit timebase following the PowerPC protocol Note that the only way to guarantee that the value returned is the value \ e right \ e now is to call this API from a critical section .
SsxTimebase
ssx_timebase_get(void)
{
    Uint64 tb;
    uint32_t high;
    do
    {
        tb.word[0] = mftbu();
        tb.word[1] = mftb();
        high       = mftbu();
    }
    while (high != tb.word[0]);
    return tb.value;
}
SsxTimebase ssx_timebase_get ( void ) { Uint64 tb ; uint32_t high ; do { tb . word [ 0 ] = mftbu ( ) ; tb . word [ 1 ] = mftb ( ) ; high = mftbu ( ) ; } while ( high != tb . word [ 0 ] ) ; return tb . value ; }
Get the 64-bit timebase following the PowerPC protocol
Note that the only way to guarantee that the value returned is the value
\e right \e now is to call this API from a critical section.
Get the 64 - bit timebase following the PowerPC protocol Note that the only way to guarantee that the value returned is the value \ e right \ e now is to call this API from a critical section .