THB2/bthome_phy6222/SDK/misc/CMSIS/device/phyplus/phy6222_start.s
2024-01-12 20:08:00 +01:00

55 lines
1 KiB
ArmAsm

/****************************************************************************
* Included Files
****************************************************************************/
/****************************************************************************
* Public Symbols
****************************************************************************/
.file "phy6222_start.s"
/* *.ld: g_top_irqstack = ORIGIN(sram) + LENGTH(sram) */
.global g_stack
.text
.align 2
.code 16
.globl __start
.thumb_func
.type __start, %function
__start:
ldr r1, = g_irqstack_top
msr msp, r1 /* r2>>sp */
bl c_start /* R0=IRQ, R1=register save area on stack */
.size __start, .-__start
#if 0 // Implemented in phy6222_vectors.c
.section .isr_vector
.align 4
.globl __Vectors
.type __Vectors, %object
__Vectors:
.long 0
.long __start
.size __Vectors, . - __Vectors
#endif
.section .irq_stack
.align 4
.global g_irqstack_base
.global g_irqstack_top
g_irqstack_base:
.space 0x400
g_irqstack_top:
.end