1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-08 17:02:26 +03:00

Fix alignment of continuations stack

This commit is contained in:
Ivan Grokhotkov
2015-06-19 17:25:25 +03:00
parent 7a9563d6c6
commit 66be67ced2
4 changed files with 5 additions and 3 deletions

View File

@ -25,7 +25,7 @@
void cont_init(cont_t* cont) {
cont->stack_guard1 = CONT_STACKGUARD;
cont->stack_guard2 = CONT_STACKGUARD;
cont->stack_end = cont->stack + (sizeof(cont->stack) / 4 - 1);
cont->stack_end = cont->stack + (sizeof(cont->stack) / 4);
cont->struct_start = (unsigned*) cont;
}