used to set and get the thread pointer. Note that a context switch will automaticly save and restore the thread pointer.