mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Merge branch 'bugfix/wifi_spin_lock_allocation_in_PSRAM_v4.1' into 'release/v4.1'
wifi: Fix spin lock allocation in PSRAM bug(v4.1) See merge request espressif/esp-idf!10552
This commit is contained in:
commit
805ee815d0
@ -179,7 +179,7 @@ static void set_isr_wrapper(int32_t n, void *f, void *arg)
|
|||||||
static void * spin_lock_create_wrapper(void)
|
static void * spin_lock_create_wrapper(void)
|
||||||
{
|
{
|
||||||
portMUX_TYPE tmp = portMUX_INITIALIZER_UNLOCKED;
|
portMUX_TYPE tmp = portMUX_INITIALIZER_UNLOCKED;
|
||||||
void *mux = malloc(sizeof(portMUX_TYPE));
|
void *mux = heap_caps_malloc(sizeof(portMUX_TYPE), MALLOC_CAP_8BIT|MALLOC_CAP_INTERNAL);
|
||||||
|
|
||||||
if (mux) {
|
if (mux) {
|
||||||
memcpy(mux,&tmp,sizeof(portMUX_TYPE));
|
memcpy(mux,&tmp,sizeof(portMUX_TYPE));
|
||||||
|
@ -169,7 +169,7 @@ static void set_isr_wrapper(int32_t n, void *f, void *arg)
|
|||||||
static void * spin_lock_create_wrapper(void)
|
static void * spin_lock_create_wrapper(void)
|
||||||
{
|
{
|
||||||
portMUX_TYPE tmp = portMUX_INITIALIZER_UNLOCKED;
|
portMUX_TYPE tmp = portMUX_INITIALIZER_UNLOCKED;
|
||||||
void *mux = malloc(sizeof(portMUX_TYPE));
|
void *mux = heap_caps_malloc(sizeof(portMUX_TYPE), MALLOC_CAP_8BIT|MALLOC_CAP_INTERNAL);
|
||||||
|
|
||||||
if (mux) {
|
if (mux) {
|
||||||
memcpy(mux,&tmp,sizeof(portMUX_TYPE));
|
memcpy(mux,&tmp,sizeof(portMUX_TYPE));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user