diff options
author | bunnei <bunneidev@gmail.com> | 2022-10-29 23:53:28 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2022-11-04 05:17:07 +0100 |
commit | ba21ba0c5cd8c3c4e6c0942512c051d1e9b24a5f (patch) | |
tree | 188de16eca88f3e9c3618f145f4ad7c787ecb722 /src/core/hle/service/nvdrv/devices/nvmap.cpp | |
parent | core: hle: kernel: Integrate system KSystemResource. (diff) | |
download | yuzu-ba21ba0c5cd8c3c4e6c0942512c051d1e9b24a5f.tar yuzu-ba21ba0c5cd8c3c4e6c0942512c051d1e9b24a5f.tar.gz yuzu-ba21ba0c5cd8c3c4e6c0942512c051d1e9b24a5f.tar.bz2 yuzu-ba21ba0c5cd8c3c4e6c0942512c051d1e9b24a5f.tar.lz yuzu-ba21ba0c5cd8c3c4e6c0942512c051d1e9b24a5f.tar.xz yuzu-ba21ba0c5cd8c3c4e6c0942512c051d1e9b24a5f.tar.zst yuzu-ba21ba0c5cd8c3c4e6c0942512c051d1e9b24a5f.zip |
Diffstat (limited to 'src/core/hle/service/nvdrv/devices/nvmap.cpp')
-rw-r--r-- | src/core/hle/service/nvdrv/devices/nvmap.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/hle/service/nvdrv/devices/nvmap.cpp b/src/core/hle/service/nvdrv/devices/nvmap.cpp index 44388655d..fa29db758 100644 --- a/src/core/hle/service/nvdrv/devices/nvmap.cpp +++ b/src/core/hle/service/nvdrv/devices/nvmap.cpp @@ -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(), ¶ms, sizeof(params)); return result; |