AzureMXChip/MXCHIPAZ3166/core/lib/threadx/ports_smp/cortex_a5x_smp/green/src/tx_ghs.c
void *__get_eh_globals(void)
{
#if defined(__ghs) && (__GHS_VERSION_NUMBER >= 500)
    return *(void **)__ghs_GetThreadLocalStorageItem(__ghs_TLS___eh_globals);
#else
TX_THREAD   *current_thread_ptr;

    /* Pickup current thread pointer.  */
    TX_THREAD_GET_CURRENT(current_thread_ptr)

    if (current_thread_ptr)

        /* Return thread-specific __eh_globals pointer.  */
        return current_thread_ptr->tx_thread_eh_globals;
    else
        /* Return the global __eh_globals pointer.  */
        return GlobalTLS.__eh_globals;
#endif
}
/* Must be called after __cpp_exception_init() is called to allocate
 * and initialize the per-thread exception handling structure */
Must be called after __cpp_exception_init() is called to allocate
and initialize the per-thread exception handling structure
Must be called after __cpp_exception_init () is called to allocate and initialize the per - thread exception handling structure
void *__get_eh_globals(void)
{
#if defined(__ghs) && (__GHS_VERSION_NUMBER >= 500)
    return *(void **)__ghs_GetThreadLocalStorageItem(__ghs_TLS___eh_globals);
#else
TX_THREAD   *current_thread_ptr;
    TX_THREAD_GET_CURRENT(current_thread_ptr)
    if (current_thread_ptr)
        return current_thread_ptr->tx_thread_eh_globals;
    else
        return GlobalTLS.__eh_globals;
#endif
}
void * __get_eh_globals ( void ) { #if defined ( __ghs ) && ( __GHS_VERSION_NUMBER >= 500 ) return * ( void * * ) __ghs_GetThreadLocalStorageItem ( __ghs_TLS___eh_globals ) ; #else TX_THREAD * current_thread_ptr ; TX_THREAD_GET_CURRENT ( current_thread_ptr ) if ( current_thread_ptr ) return current_thread_ptr -> tx_thread_eh_globals ; else return GlobalTLS . __eh_globals ; #endif }
Must be called after __cpp_exception_init() is called to allocate
 and initialize the per-thread exception handling structure
Must be called after __cpp_exception_init () is called to allocate and initialize the per - thread exception handling structure
/* Pickup current thread pointer.  */ /* Return thread-specific __eh_globals pointer.  */ /* Return the global __eh_globals pointer.  */