diff options
author | Reiko Asakura | 2021-03-11 15:40:51 -0500 |
---|---|---|
committer | Reiko Asakura | 2021-03-11 15:40:51 -0500 |
commit | 7118ccb573e2836b1b1ea2bbb6d1c88a51398d6c (patch) | |
tree | c0dc1bf77ded0f68278c39fa1cf524d3b85bfa93 /include/common/kernel/threadmgr.h | |
parent | Add prototypes in clockgen.h (diff) | |
download | vds-libraries-7118ccb573e2836b1b1ea2bbb6d1c88a51398d6c.tar.gz |
Move threadmgr functions to common header
sceKernelGetTLSAddr has been removed for kernel because it does not
exist.
Diffstat (limited to 'include/common/kernel/threadmgr.h')
-rw-r--r-- | include/common/kernel/threadmgr.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/include/common/kernel/threadmgr.h b/include/common/kernel/threadmgr.h index e7e8fb2..86255e8 100644 --- a/include/common/kernel/threadmgr.h +++ b/include/common/kernel/threadmgr.h @@ -20,6 +20,27 @@ typedef struct _SceKernelThreadOptParamInternal { SceInt32 unk0x1C; } SceKernelThreadOptParamInternal; +typedef enum _SceKernelTLS { + SCE_THREAD_TLS_UNK_0, + SCE_THREAD_TLS_ID, + SCE_THREAD_TLS_STACK_START_ADDRESS, + SCE_THREAD_TLS_STACK_END_ADDRESS, + SCE_THREAD_TLS_VFP_EXCEPTION, + SCE_THREAD_TLS_LWMUTEX_STATUS, + SCE_THREAD_TLS_UNK_6, + SCE_THREAD_TLS_UNK_7, + SCE_THREAD_TLS_PRIORITY, + SCE_THREAD_TLS_AFFINITY, +} SceKernelTLS; + +/** + * @brief sceKernelGetThreadTLSAddr gets an address to a 4 bytes area of TLS memory for the specified thread + * @param thid - The UID of the thread to access TLS + * @param key - the TLS keyslot index + * @return pointer to TLS memory + */ +void *sceKernelGetThreadTLSAddr(SceUID thid, SceKernelTLS key); + SCE_CDECL_END #endif |