mirror of
https://github.com/apache/nuttx.git
synced 2026-10-22 22:42:31 +00:00
The up_saveusercontext function leverages USER_SAVE macro, which is ordinarily used as a first half of the context switch. This macro is therefore unsuitable to be used standalone, it pops return address from the stack and does not return. This patch adds missing instructions to do what would otherwise be done by the second half of the context switch. Tested by compiling and verifying the disassembly - the function no longer falls through to the next function in the program memory, push/pop instructions are balanced and stack contents preserved Signed-off-by: Kerogit <kr.git@kerogit.eu> |
||
|---|---|---|
| .. | ||
| arm | ||
| arm64 | ||
| avr | ||
| ceva | ||
| dummy | ||
| hc | ||
| mips | ||
| misoc | ||
| or1k | ||
| renesas | ||
| risc-v | ||
| sim | ||
| sparc | ||
| tricore | ||
| x86 | ||
| x86_64 | ||
| xtensa | ||
| z16 | ||
| z80 | ||
| CMakeLists.txt | ||
| Kconfig | ||