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

clobber all caller saved registers when calling a function

parent dfccd160
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