aboutsummaryrefslogtreecommitdiff
path: root/ports/cc3200/bootmgr/runapp.s
blob: 45c6dcb195c3527a4bb8718add7e96ebb813a9e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
    .syntax unified
    .cpu cortex-m4
    .thumb
    .text
    .align  2

@ void bootmgr_run_app(_u32 base)
    .global bootmgr_run_app
    .thumb
    .thumb_func
    .type   bootmgr_run_app, %function
bootmgr_run_app:
    @ set the SP
    ldr    sp, [r0]
    add    r0, r0, #4

    @ jump to the entry code
    ldr    r1, [r0]
    bx     r1