diff options
author | itsmeft24 <57544858+itsmeft24@users.noreply.github.com> | 2021-12-06 16:37:09 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-06 16:37:09 +0100 |
commit | 4bdacdedc1d4ccb633d7427999b552382f99863c (patch) | |
tree | 0ff33ea5b49e4424f7968eff7e66fccef75bb82b /src/core/hle/kernel | |
parent | fix formatting (diff) | |
download | yuzu-4bdacdedc1d4ccb633d7427999b552382f99863c.tar yuzu-4bdacdedc1d4ccb633d7427999b552382f99863c.tar.gz yuzu-4bdacdedc1d4ccb633d7427999b552382f99863c.tar.bz2 yuzu-4bdacdedc1d4ccb633d7427999b552382f99863c.tar.lz yuzu-4bdacdedc1d4ccb633d7427999b552382f99863c.tar.xz yuzu-4bdacdedc1d4ccb633d7427999b552382f99863c.tar.zst yuzu-4bdacdedc1d4ccb633d7427999b552382f99863c.zip |
Diffstat (limited to 'src/core/hle/kernel')
-rw-r--r-- | src/core/hle/kernel/k_page_table.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/core/hle/kernel/k_page_table.cpp b/src/core/hle/kernel/k_page_table.cpp index 47f529fcd..99982e5a3 100644 --- a/src/core/hle/kernel/k_page_table.cpp +++ b/src/core/hle/kernel/k_page_table.cpp @@ -970,7 +970,6 @@ ResultCode KPageTable::UnlockForDeviceAddressSpace(VAddr addr, std::size_t size) } ResultCode KPageTable::LockForCodeMemory(VAddr addr, std::size_t size) { - std::lock_guard lock{page_table_lock}; KMemoryPermission new_perm = KMemoryPermission::NotMapped | KMemoryPermission::KernelReadWrite; @@ -998,7 +997,6 @@ ResultCode KPageTable::LockForCodeMemory(VAddr addr, std::size_t size) { } ResultCode KPageTable::UnlockForCodeMemory(VAddr addr, std::size_t size) { - std::lock_guard lock{page_table_lock}; KMemoryPermission new_perm = KMemoryPermission::UserReadWrite; @@ -1318,7 +1316,6 @@ ResultCode KPageTable::CheckMemoryState(size_t* out_blocks_needed, VAddr addr, s KMemoryState state_mask, KMemoryState state, KMemoryPermission perm_mask, KMemoryPermission perm, KMemoryAttribute attr_mask, KMemoryAttribute attr) const { - // Get information about the first block. const VAddr last_addr = addr + size - 1; KMemoryBlockManager::const_iterator it{block_manager->FindIterator(addr)}; @@ -1353,4 +1350,4 @@ ResultCode KPageTable::CheckMemoryState(size_t* out_blocks_needed, VAddr addr, s return ResultSuccess; } -} // namespace Kernel
\ No newline at end of file +} // namespace Kernel |