17 lines
259 B
ArmAsm
17 lines
259 B
ArmAsm
.syntax unified
|
|
.cpu cortex-m0plus
|
|
.thumb
|
|
|
|
.global boot2_pre
|
|
|
|
.section .text.boot2_pre
|
|
.type boot2_pre, %function
|
|
boot2_pre:
|
|
ldr r0, =_stack_top
|
|
msr msp, r0
|
|
bl boot2_copy_self
|
|
bl main
|
|
b .
|
|
|
|
.size .boot2_pre, .-boot2_pre
|