(PSP) Add thread support

This commit is contained in:
ggf906 2017-12-16 18:01:11 +01:00
parent 9596cc2866
commit 66157307d8
3 changed files with 5 additions and 5 deletions

View File

@ -4,7 +4,7 @@ DEBUG = 0
HAVE_KERNEL_PRX = 1
HAVE_LOGGER = 0
HAVE_FILE_LOGGER = 0
HAVE_THREADS = 0
HAVE_THREADS = 1
BIG_STACK = 0
WHOLE_ARCHIVE_LINK = 0
@ -33,6 +33,7 @@ LIBS = $(WHOLE_START) -lretro_psp1 $(WHOLE_END) -lstdc++ -lpspgu -lpspgum -lm -l
ifeq ($(HAVE_THREADS), 1)
RARCH_DEFINES += -DHAVE_THREADS
LIBS += -lpthread-psp
endif
ifeq ($(HAVE_FILE_LOGGER), 1)

View File

@ -26,7 +26,6 @@
#include <psp2/power.h>
#include <psp2/sysmodule.h>
#include <psp2/appmgr.h>
#include <pthread.h>
#include "../../bootstrap/vita/sbrk.c"
#include "../../bootstrap/vita/threading.c"
@ -39,6 +38,8 @@
#include <pspsdk.h>
#endif
#include <pthread.h>
#include <string/stdstring.h>
#include <boolean.h>
#include <file/file_path.h>
@ -288,7 +289,6 @@ static void frontend_psp_init(void *data)
#ifdef VITA
scePowerSetArmClockFrequency(444);
sceSysmoduleLoadModule(SCE_SYSMODULE_NET);
pthread_init();
#else
(void)data;
/* initialize debug screen */
@ -300,6 +300,7 @@ static void frontend_psp_init(void *data)
pspFpuSetEnable(0); /* disable FPU exceptions */
scePowerSetClockFrequency(333,333,166);
#endif
pthread_init();
#endif

View File

@ -45,8 +45,6 @@
#endif
#elif defined(GEKKO)
#include "gx_pthread.h"
#elif defined(PSP)
#include "psp_pthread.h"
#elif defined(__CELLOS_LV2__)
#include <pthread.h>
#include <sys/sys_time.h>