ESP-IDF platform supports to load AOT to PSRAM and run it (#2385)
This commit is contained in:
@ -12,6 +12,12 @@
|
||||
|
||||
#include "esp_log.h"
|
||||
|
||||
#ifdef CONFIG_IDF_TARGET_ESP32S3
|
||||
#define IWASM_MAIN_STACK_SIZE 5120
|
||||
#else
|
||||
#define IWASM_MAIN_STACK_SIZE 4096
|
||||
#endif
|
||||
|
||||
#define LOG_TAG "wamr"
|
||||
|
||||
static void *
|
||||
@ -146,7 +152,7 @@ app_main(void)
|
||||
pthread_attr_t tattr;
|
||||
pthread_attr_init(&tattr);
|
||||
pthread_attr_setdetachstate(&tattr, PTHREAD_CREATE_JOINABLE);
|
||||
pthread_attr_setstacksize(&tattr, 4096);
|
||||
pthread_attr_setstacksize(&tattr, IWASM_MAIN_STACK_SIZE);
|
||||
|
||||
res = pthread_create(&t, &tattr, iwasm_main, (void *)NULL);
|
||||
assert(res == 0);
|
||||
|
||||
Reference in New Issue
Block a user