The return value of the system_off call is overwritten by the the call to pm_s2ram_mark_check_and_clear. As arch_pm_s2ram_suspend needs to specify why system_off failed, we need to make sure the rv of system_off is moved to a safe register before calling pm_s2ram_mark_check_and_clear and moved to r0 als rv of arch_pm_s2ram_suspend when the suspend call exits. Signed-off-by: Hessel van der Molen <hvandermolen@dexels.com> |
||
|---|---|---|
| .. | ||
| cmse | ||
| tz | ||
| __aeabi_read_tp.S | ||
| cache.c | ||
| CMakeLists.txt | ||
| coredump.c | ||
| cpu_idle.c | ||
| debug.c | ||
| exc_exit.c | ||
| fault_s.S | ||
| fault.c | ||
| fpu.c | ||
| irq_init.c | ||
| irq_manage.c | ||
| irq_relay.S | ||
| isr_wrapper.c | ||
| Kconfig | ||
| pm_s2ram.c | ||
| pm_s2ram.S | ||
| prep_c.c | ||
| relay_vector_table.ld | ||
| reset.S | ||
| scb.c | ||
| semihost.c | ||
| swap_helper.S | ||
| thread_abort.c | ||
| thread.c | ||
| timing.c | ||
| vector_table_pad.ld | ||
| vector_table.h | ||
| vector_table.S | ||
| vt_pointer_section.ld | ||