(PSL1GHT) Add PSL1GHT semaphore redefinitions

This commit is contained in:
Twinaphex 2012-08-09 19:17:07 +02:00
parent 84a6c4d521
commit 04a5a17409
2 changed files with 15 additions and 1 deletions

View File

@ -774,7 +774,7 @@ struct RGLResource
RGLSemaphoreMemory *semaphores;
};
typedef volatile struct
typedef struct
{
GLuint Ignored00[0x010];
GLuint Put;

View File

@ -310,6 +310,20 @@
#define SYS_PPU_THREAD_CREATE_JOINABLE 0 /* FIXME - not sure if this is correct */
#endif
/*============================================================
SEMAPHORE PROTOTYPES
============================================================ */
#ifdef __PSL1GHT__
#include <sys/sem.h>
#define sys_semaphore_attribute_t sys_sem_attr_t
#define sys_semaphore_value_t s32
#define sys_semaphore_create sysSemCreate
#define sys_semaphore_destroy sysSemDestroy
#define sys_semaphore_post sysSemPost
#endif
/*============================================================
MEMORY PROTOTYPES
============================================================ */