runapp.s 343 B

12345678910111213141516171819
  1. .syntax unified
  2. .cpu cortex-m4
  3. .thumb
  4. .text
  5. .align 2
  6. @ void bootmgr_run_app(_u32 base)
  7. .global bootmgr_run_app
  8. .thumb
  9. .thumb_func
  10. .type bootmgr_run_app, %function
  11. bootmgr_run_app:
  12. @ set the SP
  13. ldr sp, [r0]
  14. add r0, r0, #4
  15. @ jump to the entry code
  16. ldr r1, [r0]
  17. bx r1