mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Merge branch 'bugfix/esp32_eco3_init_syscall_table' into 'master'
newlib: initialize syscall_table_ptr_app in single core mode Closes IDFGH-3254 See merge request espressif/esp-idf!8596
This commit is contained in:
commit
b2fe7f681e
@ -25,6 +25,7 @@
|
|||||||
#include "esp_vfs.h"
|
#include "esp_vfs.h"
|
||||||
#include "esp_newlib.h"
|
#include "esp_newlib.h"
|
||||||
#include "sdkconfig.h"
|
#include "sdkconfig.h"
|
||||||
|
#include "soc/soc_caps.h"
|
||||||
|
|
||||||
#if CONFIG_IDF_TARGET_ESP32
|
#if CONFIG_IDF_TARGET_ESP32
|
||||||
#include "esp32/rom/libc_stubs.h"
|
#include "esp32/rom/libc_stubs.h"
|
||||||
@ -98,7 +99,7 @@ static struct syscall_stub_table s_stub_table = {
|
|||||||
void esp_setup_syscall_table(void)
|
void esp_setup_syscall_table(void)
|
||||||
{
|
{
|
||||||
syscall_table_ptr_pro = &s_stub_table;
|
syscall_table_ptr_pro = &s_stub_table;
|
||||||
#if !CONFIG_FREERTOS_UNICORE
|
#if SOC_CPU_CORES_NUM == 2
|
||||||
syscall_table_ptr_app = &s_stub_table;
|
syscall_table_ptr_app = &s_stub_table;
|
||||||
#endif
|
#endif
|
||||||
_GLOBAL_REENT = &s_reent;
|
_GLOBAL_REENT = &s_reent;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user