mirror of
https://github.com/libretro/RetroArch
synced 2025-02-24 18:39:59 +00:00
- 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;
|