summaryrefslogtreecommitdiffstats
path: root/src/core/hle
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2020-04-23 23:24:14 +0200
committerLioncash <mathew1800@gmail.com>2020-04-23 23:33:08 +0200
commitf77b5dfe812cd480f10708df3cbf50d85e710b72 (patch)
tree80ed1f01e327d580fa1877d471b93e11e40bb921 /src/core/hle
parentMerge pull request #3768 from H27CK/cmd-title-fmt (diff)
downloadyuzu-f77b5dfe812cd480f10708df3cbf50d85e710b72.tar
yuzu-f77b5dfe812cd480f10708df3cbf50d85e710b72.tar.gz
yuzu-f77b5dfe812cd480f10708df3cbf50d85e710b72.tar.bz2
yuzu-f77b5dfe812cd480f10708df3cbf50d85e710b72.tar.lz
yuzu-f77b5dfe812cd480f10708df3cbf50d85e710b72.tar.xz
yuzu-f77b5dfe812cd480f10708df3cbf50d85e710b72.tar.zst
yuzu-f77b5dfe812cd480f10708df3cbf50d85e710b72.zip
Diffstat (limited to 'src/core/hle')
-rw-r--r--src/core/hle/kernel/memory/page_table.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/kernel/memory/page_table.cpp b/src/core/hle/kernel/memory/page_table.cpp
index 2c9925f33..3281611f8 100644
--- a/src/core/hle/kernel/memory/page_table.cpp
+++ b/src/core/hle/kernel/memory/page_table.cpp
@@ -854,7 +854,7 @@ ResultCode PageTable::LockForDeviceAddressSpace(VAddr addr, std::size_t size) {
}
block_manager->UpdateLock(addr, size / PageSize,
- [perm](MemoryBlockManager::iterator block, MemoryPermission perm) {
+ [](MemoryBlockManager::iterator block, MemoryPermission perm) {
block->ShareToDevice(perm);
},
perm);
@@ -876,7 +876,7 @@ ResultCode PageTable::UnlockForDeviceAddressSpace(VAddr addr, std::size_t size)
}
block_manager->UpdateLock(addr, size / PageSize,
- [perm](MemoryBlockManager::iterator block, MemoryPermission perm) {
+ [](MemoryBlockManager::iterator block, MemoryPermission perm) {
block->UnshareToDevice(perm);
},
perm);