diff --git a/include/memory.hpp b/include/memory.hpp index 4a17f6d9..02ced32c 100644 --- a/include/memory.hpp +++ b/include/memory.hpp @@ -102,10 +102,6 @@ namespace KernelMemoryTypes { }; } // namespace KernelMemoryTypes -struct FcramBlock; -class KFcram; -enum class FcramRegion; - class Memory { // Used internally by changeMemoryState struct Operation { diff --git a/src/core/kernel/resource_limits.cpp b/src/core/kernel/resource_limits.cpp index 10360320..65556c01 100644 --- a/src/core/kernel/resource_limits.cpp +++ b/src/core/kernel/resource_limits.cpp @@ -82,7 +82,9 @@ void Kernel::getResourceLimitCurrentValues() { s32 Kernel::getCurrentResourceValue(const KernelObject* limit, u32 resourceName) { const auto data = static_cast(limit->data); switch (resourceName) { - case ResourceType::Commit: return fcramManager.getUsedCount(FcramRegion::App) << 12; // TODO: needs to use the current amount of memory allocated by the process + // TODO: needs to use the current amount of memory allocated by the process + case ResourceType::Commit: return fcramManager.getUsedCount(FcramRegion::App) * Memory::pageSize; + case ResourceType::Thread: return threadIndices.size(); default: Helpers::panic("Attempted to get current value of unknown kernel resource: %d\n", resourceName); }