summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel
diff options
context:
space:
mode:
authorRodrigo Locatti <reinuseslisp@airmail.cc>2020-04-24 02:47:54 +0200
committerGitHub <noreply@github.com>2020-04-24 02:47:54 +0200
commitf24c67877b73d8098878d4c4d60b0ed259b29f3e (patch)
treef1fab68966b2ce378b62cf3aa4b0e6ef7dc09ae2 /src/core/hle/kernel
parentMerge pull request #3778 from lioncash/unused-var (diff)
parentpage_table: Remove unused captures (diff)
downloadyuzu-f24c67877b73d8098878d4c4d60b0ed259b29f3e.tar
yuzu-f24c67877b73d8098878d4c4d60b0ed259b29f3e.tar.gz
yuzu-f24c67877b73d8098878d4c4d60b0ed259b29f3e.tar.bz2
yuzu-f24c67877b73d8098878d4c4d60b0ed259b29f3e.tar.lz
yuzu-f24c67877b73d8098878d4c4d60b0ed259b29f3e.tar.xz
yuzu-f24c67877b73d8098878d4c4d60b0ed259b29f3e.tar.zst
yuzu-f24c67877b73d8098878d4c4d60b0ed259b29f3e.zip
Diffstat (limited to 'src/core/hle/kernel')
-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);