zephyr/arch
Hessel van der Molen 2590c48d40 arch: arm: cortex_m: pm_s2ram: save system_off before s2ram marking
The r0 register holds the system_off function pointer. As r0 is a scratch
register, the pointer needs to moved to a preserved register before
branching to a (custom) marker function.

Furthermore, in accordance to rule 6.2.1.2 of aapcs32, the stack pointer
needs to align on 8 bytes. Hence r0 is pushed to the stack in addition to
the lr register, before calling the public interface of checking the
s2ram marker.

Signed-off-by: Hessel van der Molen <hvandermolen@dexels.com>
2024-08-22 14:21:07 -04:00
..
arc arch: use same syntax for custom arch calls 2024-08-12 12:43:36 +02:00
arm arch: arm: cortex_m: pm_s2ram: save system_off before s2ram marking 2024-08-22 14:21:07 -04:00
arm64 arch: use same syntax for custom arch calls 2024-08-12 12:43:36 +02:00
common arch: common: isr_tables: add shell command 2024-08-12 10:10:57 +02:00
mips arch: use same syntax for custom arch calls 2024-08-12 12:43:36 +02:00
nios2 arch: use same syntax for custom arch calls 2024-08-12 12:43:36 +02:00
posix arch posix: Cleanup old code 2024-08-13 18:18:25 -04:00
riscv subsys/profiling: relocate stack unwind backends 2024-08-20 14:45:23 +02:00
sparc
x86 subsys/profiling: relocate stack unwind backends 2024-08-20 14:45:23 +02:00
xtensa xtensa: mmu: fix page table initialization 2024-08-14 09:36:19 +02:00
CMakeLists.txt
Kconfig arch: move custom arch call Kconfigs 2024-08-12 12:43:36 +02:00
Kconfig.v1
Kconfig.v2
archs.yml