Merge pull request #9173 from bunnei/kern-update-15

Kernel: Various updates for FW 15.0.x
This commit is contained in:
liamwhite 2022-11-05 13:25:29 -04:00 committed by GitHub
commit 4c198bbf06
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
38 changed files with 2794 additions and 745 deletions

View file

@ -126,10 +126,12 @@ NvResult nvmap::IocAlloc(const std::vector<u8>& input, std::vector<u8>& output)
LOG_CRITICAL(Service_NVDRV, "Object failed to allocate, handle={:08X}", params.handle);
return result;
}
bool is_out_io{};
ASSERT(system.CurrentProcess()
->PageTable()
.LockForMapDeviceAddressSpace(handle_description->address, handle_description->size,
Kernel::KMemoryPermission::None, true)
.LockForMapDeviceAddressSpace(&is_out_io, handle_description->address,
handle_description->size,
Kernel::KMemoryPermission::None, true, false)
.IsSuccess());
std::memcpy(output.data(), &params, sizeof(params));
return result;