mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-11 00:24:34 +02:00
bugfix: workaround for CPU stuck due to DBUS request blocking when fetching unaligned instructions in LP_RAM
This commit is contained in:
@@ -11,6 +11,7 @@
|
|||||||
|
|
||||||
#include "esp_attr.h"
|
#include "esp_attr.h"
|
||||||
#include "esp_sleep.h"
|
#include "esp_sleep.h"
|
||||||
|
#include "esp_cpu.h"
|
||||||
|
|
||||||
#include "soc/soc.h"
|
#include "soc/soc.h"
|
||||||
#include "soc/rtc.h"
|
#include "soc/rtc.h"
|
||||||
@@ -77,7 +78,11 @@ void RTC_IRAM_ATTR esp_wake_stub_sleep(esp_deep_sleep_wake_stub_fn_t new_stub)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
// A few CPU cycles may be necessary for the sleep to start...
|
// A few CPU cycles may be necessary for the sleep to start...
|
||||||
while (true) {};
|
#if __XTENSA__
|
||||||
|
xt_utils_wait_for_intr();
|
||||||
|
#else
|
||||||
|
rv_utils_wait_for_intr();
|
||||||
|
#endif // __XTENSA__
|
||||||
// never reaches here.
|
// never reaches here.
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user