Browse Source
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>pull/77433/head
1 changed files with 14 additions and 5 deletions
Loading…
Reference in new issue