summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorLiam <byteslice@airmail.cc>2023-02-06 19:14:27 +0100
committerLiam <byteslice@airmail.cc>2023-02-06 19:14:27 +0100
commit82c2a3da9f453c3f9debc1e531d162e530405070 (patch)
tree612817aea4715f795e539f4f9ee3208f0756cc80 /src/core
parentMerge pull request #9737 from goldenx86/yuzu_cmd (diff)
downloadyuzu-82c2a3da9f453c3f9debc1e531d162e530405070.tar
yuzu-82c2a3da9f453c3f9debc1e531d162e530405070.tar.gz
yuzu-82c2a3da9f453c3f9debc1e531d162e530405070.tar.bz2
yuzu-82c2a3da9f453c3f9debc1e531d162e530405070.tar.lz
yuzu-82c2a3da9f453c3f9debc1e531d162e530405070.tar.xz
yuzu-82c2a3da9f453c3f9debc1e531d162e530405070.tar.zst
yuzu-82c2a3da9f453c3f9debc1e531d162e530405070.zip
Diffstat (limited to 'src/core')
-rw-r--r--src/core/hle/kernel/k_capabilities.cpp8
-rw-r--r--src/core/hle/kernel/physical_core.h1
2 files changed, 5 insertions, 4 deletions
diff --git a/src/core/hle/kernel/k_capabilities.cpp b/src/core/hle/kernel/k_capabilities.cpp
index 64f1d7371..2907cc6e3 100644
--- a/src/core/hle/kernel/k_capabilities.cpp
+++ b/src/core/hle/kernel/k_capabilities.cpp
@@ -203,23 +203,23 @@ Result KCapabilities::ProcessMapRegionCapability(const u32 cap, F f) {
Result KCapabilities::MapRegion_(const u32 cap, KPageTable* page_table) {
// Map each region into the process's page table.
- R_RETURN(ProcessMapRegionCapability(
+ return ProcessMapRegionCapability(
cap, [](KMemoryRegionType region_type, KMemoryPermission perm) -> Result {
// R_RETURN(page_table->MapRegion(region_type, perm));
UNIMPLEMENTED();
R_SUCCEED();
- }));
+ });
}
Result KCapabilities::CheckMapRegion(KernelCore& kernel, const u32 cap) {
// Check that each region has a physical backing store.
- R_RETURN(ProcessMapRegionCapability(
+ return ProcessMapRegionCapability(
cap, [&](KMemoryRegionType region_type, KMemoryPermission perm) -> Result {
R_UNLESS(kernel.MemoryLayout().GetPhysicalMemoryRegionTree().FindFirstDerived(
region_type) != nullptr,
ResultOutOfRange);
R_SUCCEED();
- }));
+ });
}
Result KCapabilities::SetInterruptPairCapability(const u32 cap) {
diff --git a/src/core/hle/kernel/physical_core.h b/src/core/hle/kernel/physical_core.h
index fb2ba4c6b..fb8e7933e 100644
--- a/src/core/hle/kernel/physical_core.h
+++ b/src/core/hle/kernel/physical_core.h
@@ -3,6 +3,7 @@
#pragma once
+#include <condition_variable>
#include <cstddef>
#include <memory>
#include <mutex>