File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -172,3 +172,13 @@ void nlr_jump_fail(void *val) {
172
172
void mbedtls_debug_set_threshold (int threshold ) {
173
173
(void )threshold ;
174
174
}
175
+
176
+ void * esp_native_code_commit (void * buf , size_t len ) {
177
+ len = (len + 3 ) & ~3 ;
178
+ uint32_t * p = heap_caps_malloc (len , MALLOC_CAP_EXEC );
179
+ if (p == NULL ) {
180
+ m_malloc_fail (len );
181
+ }
182
+ memcpy (p , buf , len );
183
+ return p ;
184
+ }
Original file line number Diff line number Diff line change 20
20
21
21
// emitters
22
22
#define MICROPY_PERSISTENT_CODE_LOAD (1)
23
+ #define MICROPY_EMIT_XTENSAWIN (1)
24
+ void * esp_native_code_commit (void * , size_t );
25
+ #define MP_PLAT_COMMIT_EXEC (buf , len ) esp_native_code_commit(buf, len)
23
26
24
27
// compiler configuration
25
28
#define MICROPY_COMP_MODULE_CONST (1)
You can’t perform that action at this time.
0 commit comments