incubator-nuttx/arch/xtensa/include
Masayuki Ishikawa 2d016f8d21 arch: xtensa: Fix the PS register handling
Summary:
- I noticed that DEBUGASSERT sometimes happens in nxsem_wait()
  when testing Wi-Fi with esp32-devkitc:wsifi_smp
- The call stack was not from an interrupt handler and actually
  g_current_regs[] were correct, even though asserted with
  (up_interrupt_handler() == false)
- Finally, I found that we need to call rsync after we set
  a new value to the PS register which is described in the
  Xtensa document.
- This commit fixes this issue

Impact:
- All xtensa architectures

Testing:
- Tested with esp32-devkitc:wifi_smp and esp32-devkitc:wifi

Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2021-06-17 09:58:29 -05:00
..
esp32 esp32: replace EPS32 typo with ESP32 2021-04-29 18:03:05 -03:00
esp32s2 Fix dangling whitespace at the end of line 2021-06-01 07:49:54 +02:00
lx6 arch: xtensa: Author Gregory Nutt: update licenses to Apache 2021-04-02 03:14:31 -05:00
lx7 Add initial ESP32S2 Xtensa support 2021-06-01 07:49:54 +02:00
xtensa Add initial ESP32S2 Xtensa support 2021-06-01 07:49:54 +02:00
.gitignore
arch.h arch: Rename xxx_getsp to up_getsp 2021-06-09 10:20:02 -07:00
elf.h
inttypes.h xtensa inttypes.h: Remove PRI/SCN macros for fast and least types 2020-11-05 18:49:22 -08:00
irq.h arch: xtensa: Fix the PS register handling 2021-06-17 09:58:29 -05:00
limits.h arch: xtensa: Author Gregory Nutt: update licenses to Apache 2021-04-02 03:14:31 -05:00
loadstore.h
simcall.h
spinlock.h arch&boards/xtensa: Fix some typos, references to STM/ARM code and 2020-08-27 05:48:55 -07:00
syscall.h arch: xtensa: Author Gregory Nutt: update licenses to Apache 2021-04-02 03:14:31 -05:00
tls.h arch: Rename xxx_getsp to up_getsp 2021-06-09 10:20:02 -07:00
types.h arch: xtensa: Author Gregory Nutt: update licenses to Apache 2021-04-02 03:14:31 -05:00