From ca5e843bf62e6d69b1b476b3925927a20bbffdaf Mon Sep 17 00:00:00 2001 From: bunnei Date: Mon, 21 Feb 2022 12:34:16 -0800 Subject: core: hle: kernel: Remove resource limit hack for PhysicalMemory. - With prior changes, we now report the correct amount of physical memory available to the emulated process. --- src/core/hle/kernel/kernel.cpp | 7 ------- 1 file changed, 7 deletions(-) (limited to 'src/core') diff --git a/src/core/hle/kernel/kernel.cpp b/src/core/hle/kernel/kernel.cpp index 49c0714ed..797f47021 100644 --- a/src/core/hle/kernel/kernel.cpp +++ b/src/core/hle/kernel/kernel.cpp @@ -240,13 +240,6 @@ struct KernelCore::Impl { constexpr u64 secure_applet_memory_size{4_MiB}; ASSERT(system_resource_limit->Reserve(LimitableResource::PhysicalMemory, secure_applet_memory_size)); - - // This memory seems to be reserved on hardware, but is not reserved/used by yuzu. - // Likely Horizon OS reserved memory - // TODO(ameerj): Derive the memory rather than hardcode it. - constexpr u64 unknown_reserved_memory{0x2f896000}; - ASSERT(system_resource_limit->Reserve(LimitableResource::PhysicalMemory, - unknown_reserved_memory)); } void InitializePreemption(KernelCore& kernel) { -- cgit v1.2.3