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

Move continuation stack from .bss onto sys stack (#4622)

This commit is contained in:
Ivan Grokhotkov
2018-04-18 11:19:49 +08:00
committed by GitHub
parent 16a4f22194
commit 5d5ea92a4d
9 changed files with 70 additions and 69 deletions

View File

@ -20,12 +20,15 @@
#include "cont.h"
#include <stddef.h>
#include <string.h>
#include "ets_sys.h"
#define CONT_STACKGUARD 0xfeefeffe
void cont_init(cont_t* cont) {
memset(cont, 0, sizeof(cont_t));
cont->stack_guard1 = CONT_STACKGUARD;
cont->stack_guard2 = CONT_STACKGUARD;
cont->stack_end = cont->stack + (sizeof(cont->stack) / 4);