File tree 2 files changed +153
-153
lines changed
hardware/esp8266com/esp8266/cores/esp8266
2 files changed +153
-153
lines changed Original file line number Diff line number Diff line change 25
25
26
26
#define CONT_STACKGUARD 0xfeefeffe
27
27
28
- void cont_init (cont_t * cont ) {
28
+ void ICACHE_RAM_ATTR cont_init (cont_t * cont ) {
29
29
cont -> stack_guard1 = CONT_STACKGUARD ;
30
30
cont -> stack_guard2 = CONT_STACKGUARD ;
31
31
cont -> stack_end = cont -> stack + (sizeof (cont -> stack ) / 4 );
32
32
cont -> struct_start = (unsigned * ) cont ;
33
33
}
34
34
35
- int cont_check (cont_t * cont ) {
35
+ int ICACHE_RAM_ATTR cont_check (cont_t * cont ) {
36
36
if (cont -> stack_guard1 != CONT_STACKGUARD || cont -> stack_guard2 != CONT_STACKGUARD ) return 1 ;
37
37
38
38
return 0 ;
39
39
}
40
40
41
- bool cont_can_yield (cont_t * cont ) {
41
+ bool ICACHE_RAM_ATTR cont_can_yield (cont_t * cont ) {
42
42
return !ETS_INTR_WITHINISR () &&
43
43
cont -> pc_ret != 0 && cont -> pc_yield == 0 ;
44
44
}
You can’t perform that action at this time.
0 commit comments