This is an automated email from the ASF dual-hosted git repository.

aguettouche pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new 946601d  ESP32: Keep the 'waiti 0' instruction - noticed by Masayuki 
Ishikawa
946601d is described below

commit 946601da2fd023791453bcba6288742c0dc7d3ff
Author: Alan C. Assis <[email protected]>
AuthorDate: Thu Aug 27 09:20:00 2020 -0300

    ESP32: Keep the 'waiti 0' instruction - noticed by Masayuki Ishikawa
---
 arch/xtensa/src/common/xtensa_idle.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/arch/xtensa/src/common/xtensa_idle.c 
b/arch/xtensa/src/common/xtensa_idle.c
index ba6c415..83cd937 100644
--- a/arch/xtensa/src/common/xtensa_idle.c
+++ b/arch/xtensa/src/common/xtensa_idle.c
@@ -73,5 +73,8 @@ void up_idle(void)
    * sleep in a reduced power mode until an interrupt occurs to save power
    */
 
+#if XCHAL_HAVE_INTERRUPTS
+  __asm__ __volatile__ ("waiti 0");
+#endif
 #endif
 }

Reply via email to