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:
@ -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);
|
||||
|
Reference in New Issue
Block a user