summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2020-04-09 03:07:30 +0200
committerbunnei <bunneidev@gmail.com>2020-04-17 06:59:32 +0200
commitfc61cb44eee70082d70cbf15e80d26eb45025014 (patch)
tree5c9ccdb01580d0993288c5b78b41eadc0c7bdb71 /src/core/hle/kernel
parentkernel: Initialize memory layout for new VMM. (diff)
downloadyuzu-fc61cb44eee70082d70cbf15e80d26eb45025014.tar
yuzu-fc61cb44eee70082d70cbf15e80d26eb45025014.tar.gz
yuzu-fc61cb44eee70082d70cbf15e80d26eb45025014.tar.bz2
yuzu-fc61cb44eee70082d70cbf15e80d26eb45025014.tar.lz
yuzu-fc61cb44eee70082d70cbf15e80d26eb45025014.tar.xz
yuzu-fc61cb44eee70082d70cbf15e80d26eb45025014.tar.zst
yuzu-fc61cb44eee70082d70cbf15e80d26eb45025014.zip
Diffstat (limited to 'src/core/hle/kernel')
-rw-r--r--src/core/hle/kernel/kernel.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/core/hle/kernel/kernel.cpp b/src/core/hle/kernel/kernel.cpp
index db5796d15..7655382fa 100644
--- a/src/core/hle/kernel/kernel.cpp
+++ b/src/core/hle/kernel/kernel.cpp
@@ -160,12 +160,17 @@ struct KernelCore::Impl {
system_resource_limit = ResourceLimit::Create(kernel);
// If setting the default system values fails, then something seriously wrong has occurred.
- ASSERT(system_resource_limit->SetLimitValue(ResourceType::PhysicalMemory, 0x200000000)
+ ASSERT(system_resource_limit->SetLimitValue(ResourceType::PhysicalMemory, 0x100000000)
.IsSuccess());
ASSERT(system_resource_limit->SetLimitValue(ResourceType::Threads, 800).IsSuccess());
ASSERT(system_resource_limit->SetLimitValue(ResourceType::Events, 700).IsSuccess());
ASSERT(system_resource_limit->SetLimitValue(ResourceType::TransferMemory, 200).IsSuccess());
ASSERT(system_resource_limit->SetLimitValue(ResourceType::Sessions, 900).IsSuccess());
+
+ if (!system_resource_limit->Reserve(ResourceType::PhysicalMemory, 0) ||
+ !system_resource_limit->Reserve(ResourceType::PhysicalMemory, 0x60000)) {
+ UNREACHABLE();
+ }
}
void InitializeThreads() {