File tree 2 files changed +13
-1
lines changed
2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 27
27
#include < stdint.h>
28
28
#include < stdlib.h>
29
29
#include < stdio.h>
30
- # include " pgmspace.h "
30
+
31
31
#include " debug.h"
32
32
#include " StackThunk.h"
33
+
34
+ #include < pgmspace.h>
33
35
#include < ets_sys.h>
36
+
34
37
#include < umm_malloc/umm_malloc.h>
35
38
#include < umm_malloc/umm_heap_select.h>
36
39
37
40
extern " C" {
38
41
42
+ extern void optimistic_yield (uint32_t );
43
+
39
44
uint32_t *stack_thunk_ptr = NULL ;
40
45
uint32_t *stack_thunk_top = NULL ;
41
46
uint32_t *stack_thunk_save = NULL ; /* Saved A1 while in BearSSL */
@@ -150,4 +155,9 @@ void stack_thunk_fatal_smashing()
150
155
__stack_chk_fail ();
151
156
}
152
157
158
+ void stack_thunk_yield ()
159
+ {
160
+ optimistic_yield (10000 );
161
+ }
162
+
153
163
}
Original file line number Diff line number Diff line change 31
31
extern "C" {
32
32
#endif
33
33
34
+ extern void stack_thunk_yield (void );
35
+
34
36
extern void stack_thunk_add_ref ();
35
37
extern void stack_thunk_del_ref ();
36
38
extern void stack_thunk_repaint ();
You can’t perform that action at this time.
0 commit comments