mirror of
https://github.com/yuzu-mirror/yuzu.git
synced 2024-11-18 04:27:41 +01:00
core: kernel: k_process: Use application system resource.
This commit is contained in:
parent
b3a8c0dc49
commit
e79270507b
@ -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);
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user