diff options
author | liamwhite <liamwhite@users.noreply.github.com> | 2023-02-11 16:28:50 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-11 16:28:50 +0100 |
commit | 709879cfc102f37f2955503b41863f0d3711a398 (patch) | |
tree | 4e28c01246e7b9051b6ae78f54930b31cc306afc /src/core/hle | |
parent | Merge pull request #9768 from merryhime/biquad-rounding (diff) | |
parent | core: kernel: k_process: Use application system resource. (diff) | |
download | yuzu-709879cfc102f37f2955503b41863f0d3711a398.tar yuzu-709879cfc102f37f2955503b41863f0d3711a398.tar.gz yuzu-709879cfc102f37f2955503b41863f0d3711a398.tar.bz2 yuzu-709879cfc102f37f2955503b41863f0d3711a398.tar.lz yuzu-709879cfc102f37f2955503b41863f0d3711a398.tar.xz yuzu-709879cfc102f37f2955503b41863f0d3711a398.tar.zst yuzu-709879cfc102f37f2955503b41863f0d3711a398.zip |
Diffstat (limited to 'src/core/hle')
-rw-r--r-- | src/core/hle/kernel/k_process.cpp | 2 | ||||
-rw-r--r-- | src/core/hle/kernel/kernel.cpp | 8 | ||||
-rw-r--r-- | src/core/hle/kernel/kernel.h | 6 |
3 files changed, 15 insertions, 1 deletions
diff --git a/src/core/hle/kernel/k_process.cpp b/src/core/hle/kernel/k_process.cpp index e201bb0cd..0e4283a0c 100644 --- a/src/core/hle/kernel/k_process.cpp +++ b/src/core/hle/kernel/k_process.cpp @@ -370,7 +370,7 @@ Result KProcess::LoadFromMetadata(const FileSys::ProgramMetadata& metadata, std: // Initialize proces address space if (const Result result{page_table.InitializeForProcess( metadata.GetAddressSpaceType(), false, false, false, KMemoryManager::Pool::Application, - 0x8000000, code_size, &kernel.GetSystemSystemResource(), resource_limit)}; + 0x8000000, code_size, &kernel.GetAppSystemResource(), resource_limit)}; result.IsError()) { R_RETURN(result); } diff --git a/src/core/hle/kernel/kernel.cpp b/src/core/hle/kernel/kernel.cpp index d9eafe261..5b72eaaa1 100644 --- a/src/core/hle/kernel/kernel.cpp +++ b/src/core/hle/kernel/kernel.cpp @@ -1146,6 +1146,14 @@ const KMemoryManager& KernelCore::MemoryManager() const { return *impl->memory_manager; } +KSystemResource& KernelCore::GetAppSystemResource() { + return *impl->app_system_resource; +} + +const KSystemResource& KernelCore::GetAppSystemResource() const { + return *impl->app_system_resource; +} + KSystemResource& KernelCore::GetSystemSystemResource() { return *impl->sys_system_resource; } diff --git a/src/core/hle/kernel/kernel.h b/src/core/hle/kernel/kernel.h index 5f52e1e95..af0ae0e98 100644 --- a/src/core/hle/kernel/kernel.h +++ b/src/core/hle/kernel/kernel.h @@ -246,6 +246,12 @@ public: /// Gets the virtual memory manager for the kernel. const KMemoryManager& MemoryManager() const; + /// Gets the application resource manager. + KSystemResource& GetAppSystemResource(); + + /// Gets the application resource manager. + const KSystemResource& GetAppSystemResource() const; + /// Gets the system resource manager. KSystemResource& GetSystemSystemResource(); |