IocGetWaitbase -> IocChannelGetWaitbaseCommand

This commit is contained in:
David Marcec
2018-05-11 11:41:09 -07:00
parent 8bd8170d0b
commit 031ba986d0
2 changed files with 3 additions and 3 deletions

View File

@@ -32,7 +32,7 @@ u32 nvhost_gpu::ioctl(Ioctl command, const std::vector<u8>& input, std::vector<u
return AllocGPFIFOEx2(input, output);
case IoctlCommand::IocAllocObjCtxCommand:
return AllocateObjectContext(input, output);
case IoctlCommand::IocGetWaitbase:
case IoctlCommand::IocChannelGetWaitbaseCommand:
return GetWaitbase(input, output);
}
@@ -144,7 +144,7 @@ u32 nvhost_gpu::GetWaitbase(const std::vector<u8>& input, std::vector<u8>& outpu
IoctlGetWaitbase params{};
std::memcpy(&params, input.data(), sizeof(IoctlGetWaitbase));
NGLOG_INFO(Service_NVDRV, "called, unknown={:X}", params.unknown);
params.value = 0; // Seems to be hard coded at 0
params.value = 0; // Seems to be hard coded at 0str
std::memcpy(output.data(), &params, output.size());
return 0;
}

View File

@@ -33,7 +33,7 @@ private:
IocChannelSetPriorityCommand = 0x4004480D,
IocAllocGPFIFOEx2Command = 0xC020481A,
IocAllocObjCtxCommand = 0xC0104809,
IocGetWaitbase = 0xC0080003,
IocChannelGetWaitbaseCommand = 0xC0080003,
};
enum class CtxObjects : u32_le {