Skip to content
Snippets Groups Projects
Unverified Commit 16698266 authored by CNLohr's avatar CNLohr Committed by GitHub
Browse files

Merge pull request #185 from jnk0le/jnk0le-patch-2

clobber all caller saved registers when calling an init_array
parents dfccd160 be531e8e
No related branches found
No related tags found
No related merge requests found
......@@ -810,11 +810,11 @@ asm volatile(
#ifdef CPLUSPLUS
// Call __libc_init_array function
" call %0 \n\t"
: : "i" (__libc_init_array)
: : "i" (__libc_init_array)
: "a0", "a1", "a2", "a3", "a4", "a5", "t0", "t1", "t2", "memory"
#else
: :
: : : "a0", "a1", "a2", "a3", "memory"
#endif
: "a0", "a1", "a2", "a3", "memory"
);
SETUP_SYSTICK_HCLK
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment