MCPcopy Create free account
hub / github.com/devkitPro/libctru / __system_initSyscalls

Function __system_initSyscalls

libctru/source/system/syscalls.c:257–265  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

255}
256
257void __system_initSyscalls(void)
258{
259 // Initialize thread vars for the main thread
260 initThreadVars(NULL);
261 u32 tls_size = __tdata_lma_end - __tdata_lma;
262 size_t tdata_start = alignTo((size_t)__tls_start, __tdata_align);
263 if (tls_size)
264 memcpy((void*)tdata_start, __tdata_lma, tls_size);
265}

Callers 1

__libctru_initFunction · 0.85

Calls 2

initThreadVarsFunction · 0.85
alignToFunction · 0.85

Tested by

no test coverage detected