(PSP) Add thread support
This commit is contained in:
parent
9596cc2866
commit
66157307d8
|
@ -4,7 +4,7 @@ DEBUG = 0
|
||||||
HAVE_KERNEL_PRX = 1
|
HAVE_KERNEL_PRX = 1
|
||||||
HAVE_LOGGER = 0
|
HAVE_LOGGER = 0
|
||||||
HAVE_FILE_LOGGER = 0
|
HAVE_FILE_LOGGER = 0
|
||||||
HAVE_THREADS = 0
|
HAVE_THREADS = 1
|
||||||
BIG_STACK = 0
|
BIG_STACK = 0
|
||||||
WHOLE_ARCHIVE_LINK = 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)
|
ifeq ($(HAVE_THREADS), 1)
|
||||||
RARCH_DEFINES += -DHAVE_THREADS
|
RARCH_DEFINES += -DHAVE_THREADS
|
||||||
|
LIBS += -lpthread-psp
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(HAVE_FILE_LOGGER), 1)
|
ifeq ($(HAVE_FILE_LOGGER), 1)
|
||||||
|
|
|
@ -26,7 +26,6 @@
|
||||||
#include <psp2/power.h>
|
#include <psp2/power.h>
|
||||||
#include <psp2/sysmodule.h>
|
#include <psp2/sysmodule.h>
|
||||||
#include <psp2/appmgr.h>
|
#include <psp2/appmgr.h>
|
||||||
#include <pthread.h>
|
|
||||||
|
|
||||||
#include "../../bootstrap/vita/sbrk.c"
|
#include "../../bootstrap/vita/sbrk.c"
|
||||||
#include "../../bootstrap/vita/threading.c"
|
#include "../../bootstrap/vita/threading.c"
|
||||||
|
@ -39,6 +38,8 @@
|
||||||
#include <pspsdk.h>
|
#include <pspsdk.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include <pthread.h>
|
||||||
|
|
||||||
#include <string/stdstring.h>
|
#include <string/stdstring.h>
|
||||||
#include <boolean.h>
|
#include <boolean.h>
|
||||||
#include <file/file_path.h>
|
#include <file/file_path.h>
|
||||||
|
@ -288,7 +289,6 @@ static void frontend_psp_init(void *data)
|
||||||
#ifdef VITA
|
#ifdef VITA
|
||||||
scePowerSetArmClockFrequency(444);
|
scePowerSetArmClockFrequency(444);
|
||||||
sceSysmoduleLoadModule(SCE_SYSMODULE_NET);
|
sceSysmoduleLoadModule(SCE_SYSMODULE_NET);
|
||||||
pthread_init();
|
|
||||||
#else
|
#else
|
||||||
(void)data;
|
(void)data;
|
||||||
/* initialize debug screen */
|
/* initialize debug screen */
|
||||||
|
@ -300,6 +300,7 @@ static void frontend_psp_init(void *data)
|
||||||
pspFpuSetEnable(0); /* disable FPU exceptions */
|
pspFpuSetEnable(0); /* disable FPU exceptions */
|
||||||
scePowerSetClockFrequency(333,333,166);
|
scePowerSetClockFrequency(333,333,166);
|
||||||
#endif
|
#endif
|
||||||
|
pthread_init();
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -45,8 +45,6 @@
|
||||||
#endif
|
#endif
|
||||||
#elif defined(GEKKO)
|
#elif defined(GEKKO)
|
||||||
#include "gx_pthread.h"
|
#include "gx_pthread.h"
|
||||||
#elif defined(PSP)
|
|
||||||
#include "psp_pthread.h"
|
|
||||||
#elif defined(__CELLOS_LV2__)
|
#elif defined(__CELLOS_LV2__)
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
#include <sys/sys_time.h>
|
#include <sys/sys_time.h>
|
||||||
|
|
Loading…
Reference in New Issue