pm: statically allocate more resources to save memory

This commit is contained in:
Michael Scire 2019-10-14 23:12:07 -07:00 committed by SciresM
parent aa0826bb70
commit 2cb8aadafc
2 changed files with 56 additions and 3 deletions

View file

@ -37,7 +37,9 @@ extern "C" {
u32 __nx_applet_type = AppletType_None;
u32 __nx_fs_num_sessions = 1;
#define INNER_HEAP_SIZE 0x40000
/* TODO: Statically allocate PM resource thread stack, reduce this. */
/* TODO: Determine what the minimum consistent value for this is (dump heap at runtime). */
#define INNER_HEAP_SIZE 0xC000
size_t nx_inner_heap_size = INNER_HEAP_SIZE;
char nx_inner_heap[INNER_HEAP_SIZE];