| 14 | void __system_initArgv(void); |
| 15 | |
| 16 | void __attribute__((weak)) __libctru_init(void (*retAddr)(void)) |
| 17 | { |
| 18 | // Store the return address |
| 19 | __system_retAddr = envIsHomebrew() ? retAddr : NULL; |
| 20 | |
| 21 | // Initialize the synchronization subsystem |
| 22 | __sync_init(); |
| 23 | |
| 24 | // Initialize newlib support system calls |
| 25 | __system_initSyscalls(); |
| 26 | |
| 27 | // Allocate application and linear heaps |
| 28 | __system_allocateHeaps(); |
| 29 | |
| 30 | // Build argc/argv if present |
| 31 | __system_initArgv(); |
| 32 | } |
nothing calls this directly
no test coverage detected