2014-07-12 09:46:14 +02:00
|
|
|
#include "stdafx.h"
|
2014-08-27 00:44:32 +02:00
|
|
|
#include "Emu/Memory/Memory.h"
|
|
|
|
|
#include "Emu/System.h"
|
|
|
|
|
#include "Emu/SysCalls/Modules.h"
|
|
|
|
|
|
|
|
|
|
#include "cellSync2.h"
|
|
|
|
|
|
|
|
|
|
//void cellSync2_init();
|
|
|
|
|
//Module cellSync2(0x0055, cellSync2_init);
|
|
|
|
|
Module* cellSync2 = nullptr;
|
|
|
|
|
|
|
|
|
|
#ifdef PRX_DEBUG
|
|
|
|
|
#include "prx_libsync2.h"
|
|
|
|
|
u32 libsync2;
|
|
|
|
|
u32 libsync2_rtoc;
|
|
|
|
|
#endif
|
2013-09-28 04:36:57 +02:00
|
|
|
|
|
|
|
|
int _cellSync2MutexAttributeInitialize()
|
|
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellSync2);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int cellSync2MutexEstimateBufferSize()
|
|
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellSync2);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int cellSync2MutexInitialize()
|
|
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellSync2);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int cellSync2MutexFinalize()
|
|
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellSync2);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int cellSync2MutexLock()
|
|
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellSync2);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int cellSync2MutexTryLock()
|
|
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellSync2);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int cellSync2MutexUnlock()
|
|
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellSync2);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int _cellSync2CondAttributeInitialize()
|
|
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellSync2);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int cellSync2CondEstimateBufferSize()
|
|
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellSync2);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int cellSync2CondInitialize()
|
|
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellSync2);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int cellSync2CondFinalize()
|
|
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellSync2);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int cellSync2CondWait()
|
|
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellSync2);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int cellSync2CondSignal()
|
|
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellSync2);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int cellSync2CondSignalAll()
|
|
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellSync2);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int _cellSync2SemaphoreAttributeInitialize()
|
|
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellSync2);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int cellSync2SemaphoreEstimateBufferSize()
|
|
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellSync2);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int cellSync2SemaphoreInitialize()
|
|
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellSync2);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int cellSync2SemaphoreFinalize()
|
|
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellSync2);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int cellSync2SemaphoreAcquire()
|
|
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellSync2);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int cellSync2SemaphoreTryAcquire()
|
|
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellSync2);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int cellSync2SemaphoreRelease()
|
|
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellSync2);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int cellSync2SemaphoreGetCount()
|
|
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellSync2);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int _cellSync2QueueAttributeInitialize()
|
|
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellSync2);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int cellSync2QueueEstimateBufferSize()
|
|
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellSync2);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int cellSync2QueueInitialize()
|
|
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellSync2);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int cellSync2QueueFinalize()
|
|
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellSync2);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int cellSync2QueuePush()
|
|
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellSync2);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int cellSync2QueueTryPush()
|
|
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellSync2);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int cellSync2QueuePop()
|
|
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellSync2);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int cellSync2QueueTryPop()
|
|
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellSync2);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int cellSync2QueueGetSize()
|
|
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellSync2);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int cellSync2QueueGetDepth()
|
|
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellSync2);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void cellSync2_init()
|
|
|
|
|
{
|
2014-08-27 00:44:32 +02:00
|
|
|
cellSync2->AddFunc(0x55836e73, _cellSync2MutexAttributeInitialize);
|
|
|
|
|
cellSync2->AddFunc(0xd51bfae7, cellSync2MutexEstimateBufferSize);
|
|
|
|
|
cellSync2->AddFunc(0xeb81a467, cellSync2MutexInitialize);
|
|
|
|
|
cellSync2->AddFunc(0x27f2d61c, cellSync2MutexFinalize);
|
|
|
|
|
cellSync2->AddFunc(0xa400d82e, cellSync2MutexLock);
|
|
|
|
|
cellSync2->AddFunc(0xa69c749c, cellSync2MutexTryLock);
|
|
|
|
|
cellSync2->AddFunc(0x0080fe88, cellSync2MutexUnlock);
|
|
|
|
|
|
|
|
|
|
cellSync2->AddFunc(0xdf3c532a, _cellSync2CondAttributeInitialize);
|
|
|
|
|
cellSync2->AddFunc(0x5b1e4d7a, cellSync2CondEstimateBufferSize);
|
|
|
|
|
cellSync2->AddFunc(0x58be9a0f, cellSync2CondInitialize);
|
|
|
|
|
cellSync2->AddFunc(0x63062249, cellSync2CondFinalize);
|
|
|
|
|
cellSync2->AddFunc(0xbc96d751, cellSync2CondWait);
|
|
|
|
|
cellSync2->AddFunc(0x871af804, cellSync2CondSignal);
|
|
|
|
|
cellSync2->AddFunc(0x8aae07c2, cellSync2CondSignalAll);
|
|
|
|
|
|
|
|
|
|
cellSync2->AddFunc(0x2d77fe17, _cellSync2SemaphoreAttributeInitialize);
|
|
|
|
|
cellSync2->AddFunc(0x74c2780f, cellSync2SemaphoreEstimateBufferSize);
|
|
|
|
|
cellSync2->AddFunc(0xc5dee254, cellSync2SemaphoreInitialize);
|
|
|
|
|
cellSync2->AddFunc(0x164843a7, cellSync2SemaphoreFinalize);
|
|
|
|
|
cellSync2->AddFunc(0xd1b0d146, cellSync2SemaphoreAcquire);
|
|
|
|
|
cellSync2->AddFunc(0x5e4b0f87, cellSync2SemaphoreTryAcquire);
|
|
|
|
|
cellSync2->AddFunc(0x0c2983ac, cellSync2SemaphoreRelease);
|
|
|
|
|
cellSync2->AddFunc(0x4e2ee031, cellSync2SemaphoreGetCount);
|
|
|
|
|
|
|
|
|
|
cellSync2->AddFunc(0x5e00d433, _cellSync2QueueAttributeInitialize);
|
|
|
|
|
cellSync2->AddFunc(0xc08cc0f9, cellSync2QueueEstimateBufferSize);
|
|
|
|
|
cellSync2->AddFunc(0xf125e044, cellSync2QueueInitialize);
|
|
|
|
|
cellSync2->AddFunc(0x6af85cdf, cellSync2QueueFinalize);
|
|
|
|
|
cellSync2->AddFunc(0x7d967d91, cellSync2QueuePush);
|
|
|
|
|
cellSync2->AddFunc(0x7fd479fe, cellSync2QueueTryPush);
|
|
|
|
|
cellSync2->AddFunc(0xd83ab0c9, cellSync2QueuePop);
|
|
|
|
|
cellSync2->AddFunc(0x0c9a0ea9, cellSync2QueueTryPop);
|
|
|
|
|
cellSync2->AddFunc(0x12f0a27d, cellSync2QueueGetSize);
|
|
|
|
|
cellSync2->AddFunc(0xf0e1471c, cellSync2QueueGetDepth);
|
|
|
|
|
|
|
|
|
|
#ifdef PRX_DEBUG
|
2014-06-02 19:27:24 +02:00
|
|
|
#endif
|
2014-08-27 00:44:32 +02:00
|
|
|
}
|