We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5d251b1 commit b135070Copy full SHA for b135070
hardware/esp8266com/esp8266/cores/esp8266/cont_util.c
@@ -25,20 +25,20 @@
25
26
#define CONT_STACKGUARD 0xfeefeffe
27
28
-void cont_init(cont_t* cont) {
+void ICACHE_RAM_ATTR cont_init(cont_t* cont) {
29
cont->stack_guard1 = CONT_STACKGUARD;
30
cont->stack_guard2 = CONT_STACKGUARD;
31
cont->stack_end = cont->stack + (sizeof(cont->stack) / 4);
32
cont->struct_start = (unsigned*) cont;
33
}
34
35
-int cont_check(cont_t* cont) {
+int ICACHE_RAM_ATTR cont_check(cont_t* cont) {
36
if(cont->stack_guard1 != CONT_STACKGUARD || cont->stack_guard2 != CONT_STACKGUARD) return 1;
37
38
return 0;
39
40
41
-bool cont_can_yield(cont_t* cont) {
+bool ICACHE_RAM_ATTR cont_can_yield(cont_t* cont) {
42
return !ETS_INTR_WITHINISR() &&
43
cont->pc_ret != 0 && cont->pc_yield == 0;
44
0 commit comments