mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-24 19:54:22 -04:00
ProcessManager: Refactor resource limits, complete pm:shell.
This commit is contained in:
parent
7695b5bdbd
commit
6dc8ab6f17
6 changed files with 219 additions and 93 deletions
|
@ -1,5 +1,6 @@
|
|||
#include <switch.h>
|
||||
#include "pm_registration.hpp"
|
||||
#include "pm_resource_limits.hpp"
|
||||
#include "pm_shell.hpp"
|
||||
#include "pm_debug.hpp"
|
||||
|
||||
|
@ -170,11 +171,11 @@ std::tuple<Result, u64> ShellService::get_application_process_id() {
|
|||
return {0x20F, 0};
|
||||
}
|
||||
|
||||
std::tuple<Result> ShellService::boost_system_memory_resource_limit() {
|
||||
std::tuple<Result> ShellService::boost_system_memory_resource_limit(u64 sysmem_size) {
|
||||
if (!kernelAbove400()) {
|
||||
return {0xF601};
|
||||
}
|
||||
|
||||
/* TODO */
|
||||
return {0xF601};
|
||||
return {ResourceLimitUtils::BoostSystemMemoryResourceLimit(sysmem_size)};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue