mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-08 19:40:30 +00:00
ac119b04f6
- 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.
19 lines
384 B
C
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;
|