Fixing stack alignment issue in Arduino scheduler
parent
6d329077bc
commit
e99cc3cd8b
|
@ -327,7 +327,7 @@ static thread *Qpop(threadQ * q) {
|
||||||
/* These functions are not static to prevent the compiler removing them as functions */
|
/* These functions are not static to prevent the compiler removing them as functions */
|
||||||
|
|
||||||
void get_stack_state(void) {
|
void get_stack_state(void) {
|
||||||
char c;
|
char* c;
|
||||||
pframeinfo->localptr = (char *)&c;
|
pframeinfo->localptr = (char *)&c;
|
||||||
_setjmp(pframeinfo->cxt);
|
_setjmp(pframeinfo->cxt);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue