From 2577658fc727676e2257dfb5b39642783a00c2b6 Mon Sep 17 00:00:00 2001 From: Billy Laws Date: Sat, 30 Oct 2021 18:50:59 +0100 Subject: [PATCH] Avoid GetPointer on nvmap handles where they would be accessed via SMMU GetPointer sets the sharedMemMapped flag, which should only be set if other userspace processes have the handle mapped. --- app/src/main/cpp/skyline/services/nvdrv/core/nvmap.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/cpp/skyline/services/nvdrv/core/nvmap.cpp b/app/src/main/cpp/skyline/services/nvdrv/core/nvmap.cpp index 8064b83a..20515963 100644 --- a/app/src/main/cpp/skyline/services/nvdrv/core/nvmap.cpp +++ b/app/src/main/cpp/skyline/services/nvdrv/core/nvmap.cpp @@ -151,7 +151,7 @@ namespace skyline::service::nvdrv::core { } } - state.soc->smmu.Map(address, handleDesc->GetPointer(), static_cast(handleDesc->alignedSize)); + state.soc->smmu.Map(address, reinterpret_cast(handleDesc->address), static_cast(handleDesc->alignedSize)); handleDesc->pinVirtAddress = address; }