nuttx/arch
Kerogit fa7f81c34e arch/avr: fix up_saveusercontext
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>
2025-05-27 20:46:22 +08:00
..
arm Revert "Reduce the size of tcb by four bytes." 2025-05-27 16:30:35 +08:00
arm64 Revert "Reduce the size of tcb by four bytes." 2025-05-27 16:30:35 +08:00
avr arch/avr: fix up_saveusercontext 2025-05-27 20:46:22 +08:00
ceva Revert "Reduce the size of tcb by four bytes." 2025-05-27 16:30:35 +08:00
dummy
hc style: fix spelling in code comments and strings 2025-05-23 10:48:41 +08:00
mips Revert "Reduce the size of tcb by four bytes." 2025-05-27 16:30:35 +08:00
misoc Revert "Reduce the size of tcb by four bytes." 2025-05-27 16:30:35 +08:00
or1k Revert "Reduce the size of tcb by four bytes." 2025-05-27 16:30:35 +08:00
renesas Revert "Reduce the size of tcb by four bytes." 2025-05-27 16:30:35 +08:00
risc-v Revert "Reduce the size of tcb by four bytes." 2025-05-27 16:30:35 +08:00
sim Revert "Reduce the size of tcb by four bytes." 2025-05-27 16:30:35 +08:00
sparc Revert "Reduce the size of tcb by four bytes." 2025-05-27 16:30:35 +08:00
tricore Revert "Reduce the size of tcb by four bytes." 2025-05-27 16:30:35 +08:00
x86 Revert "Reduce the size of tcb by four bytes." 2025-05-27 16:30:35 +08:00
x86_64 Revert "Reduce the size of tcb by four bytes." 2025-05-27 16:30:35 +08:00
xtensa Revert "Reduce the size of tcb by four bytes." 2025-05-27 16:30:35 +08:00
z16 Revert "Reduce the size of tcb by four bytes." 2025-05-27 16:30:35 +08:00
z80 Revert "Reduce the size of tcb by four bytes." 2025-05-27 16:30:35 +08:00
CMakeLists.txt
Kconfig style: fix spelling in code comments and strings 2025-05-23 10:48:41 +08:00