diff options
author | aliaspider | 2016-01-16 17:47:28 +0100 |
---|---|---|
committer | aliaspider | 2016-01-16 17:47:28 +0100 |
commit | f72db18e0c39a5bf115f493767decc409e10f94a (patch) | |
tree | a88f156055799bd78dafd7423440ec6a429be016 /frontend/3ds/pthread.h | |
parent | 0c840ff34defe22147f497c33e0ebad9386fada6 (diff) | |
download | pcsx_rearmed-f72db18e0c39a5bf115f493767decc409e10f94a.tar.gz pcsx_rearmed-f72db18e0c39a5bf115f493767decc409e10f94a.tar.bz2 pcsx_rearmed-f72db18e0c39a5bf115f493767decc409e10f94a.zip |
(3DS) - remove provileged services enabling code, it should be done by
the frontend instead.
- dynamically allocate the recompiler cache, this will allow using the
recompiler even when the .bss section is relocated far from the .text
section (for example when using the hombrew loader).
Diffstat (limited to 'frontend/3ds/pthread.h')
-rw-r--r-- | frontend/3ds/pthread.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/frontend/3ds/pthread.h b/frontend/3ds/pthread.h index 56d9085..2c2bf6b 100644 --- a/frontend/3ds/pthread.h +++ b/frontend/3ds/pthread.h @@ -2,18 +2,18 @@ #ifndef _3DS_PTHREAD_WRAP__ #define _3DS_PTHREAD_WRAP__ -#include "3ds.h" -#include "stdlib.h" -#include "string.h" -#include "stdio.h" +#include <stdlib.h> +#include <string.h> +#include <stdio.h> +#include "3ds_utils.h" #define CTR_PTHREAD_STACK_SIZE 0x10000 typedef struct { - Handle handle; - u32* stack; + int32_t handle; + uint32_t* stack; }pthread_t; typedef int pthread_attr_t; @@ -23,8 +23,8 @@ static inline int pthread_create(pthread_t *thread, thread->stack = linearMemAlign(CTR_PTHREAD_STACK_SIZE, 8); - svcCreateThread(&thread->handle, (ThreadFunc)start_routine,arg, - (u32*)((u32)thread->stack + CTR_PTHREAD_STACK_SIZE), + svcCreateThread(&thread->handle, start_routine, arg, + (uint32_t*)((uint32_t)thread->stack + CTR_PTHREAD_STACK_SIZE), 0x25, 1); return 1; |