dce: fix buffer in use usage

This commit is contained in:
DH 2024-09-01 20:26:53 +03:00
parent 6455fe6f5f
commit 700e75c5ab

View file

@ -251,12 +251,12 @@ static orbis::ErrorCode dce_ioctl(orbis::File *file, std::uint64_t request,
*(std::uint64_t *)args->ptr = kDceControlMemoryOffset; // dev offset
*(std::uint64_t *)args->size = kDceControlMemorySize; // size
} else if (args->id == 31) {
// if ((std::uint64_t)args->ptr == 0xc) {
// rx::bridge.header->bufferInUseAddress = args->size;
// } else {
// ORBIS_LOG_ERROR("buffer in use", args->ptr, args->size);
// thread->where();
// }
if ((std::uint64_t)args->ptr == 0xc) {
rx::bridge.header->bufferInUseAddress = args->size;
} else {
ORBIS_LOG_ERROR("buffer in use", args->ptr, args->size);
thread->where();
}
// std::abort();
return {};
} else if (args->id == 33) { // adjust color