RetroArch/ctr/ctr_config.c
aliaspider ac119b04f6 (CTR/3DS) improve memory management.
- use a custom crt0 to allow overriding __heap_size and
__linear_heap_size
- add a setting for maximum heap size. unallocated memory can be freely
mapped by the core.
- add better detection of the extra memory available when running from
the HBL.
2015-10-22 20:35:22 +01:00

19 lines
384 B
C

#ifndef CTR_STACK_SIZE
#define CTR_STACK_SIZE 0x100000
#endif
#ifndef CTR_LINEAR_HEAP_SIZE
#define CTR_LINEAR_HEAP_SIZE 0x600000
#endif
#ifndef CTR_MAX_HEAP_SIZE
#define CTR_MAX_HEAP_SIZE 0x6000000
#endif
int __stacksize__ = CTR_STACK_SIZE;
unsigned int __linear_heap_size = CTR_LINEAR_HEAP_SIZE;
unsigned int __heap_size = CTR_MAX_HEAP_SIZE;