SPRAB89A September 2011 – March 2014
The addressing used for the Initial Exec model needs a way to obtain the thread pointer of the current thread. A new c6xabi function, __c6xabi_get_tp(), returns the thread pointer value for the current thread. This function does not modify any register other than the return register A4. This function can be called via the PLT, so the caller should assume that the B30 and B31 registers are modified by the call to this function. This function has the following signature:
void * __c6xabi_get_tp(void);
The thread library is responsible for providing a definition of this function.