Added GSP_GPU::FlushDataCache

This cannot be finished until Kprocess is implemented, until then it just shows an info log regarding what it called.
This commit is contained in:
purpasmart96 2014-10-15 16:03:58 -07:00 committed by purpasmart96
parent e4905143c8
commit b3cf1c9e8b

View file

@ -149,6 +149,30 @@ void SetBufferSwap(Service::Interface* self) {
cmd_buff[1] = 0; // No error cmd_buff[1] = 0; // No error
} }
/**
* GSP_GPU::FlushDataCache service function
*
* TODO: This will need to be finished in the future when KProcess is implemented.
*
* Inputs:
* 1 : Address
* 2 : Size
* 3 : Value zero
* 4 : KProcess handle
* Outputs:
* 1 : Result of function, 0 on success, otherwise error code
*/
void FlushDataCache(Service::Interface* self) {
u32* cmd_buff = Service::GetCommandBuffer();
u32 addr = cmd_buff[1];
u32 size = cmd_buff[2];
u32 value = cmd_buff[3];
u32 process = cmd_buff[4];
cmd_buff[1] = 0; // No error
INFO_LOG(GSP, "called addr=0x%08X, size=0x%08X, value=0x%08X, process=0x%08X", addr, size, value, process);
}
/** /**
* GSP_GPU::RegisterInterruptRelayQueue service function * GSP_GPU::RegisterInterruptRelayQueue service function
* Inputs: * Inputs: