Clean minor issues in startup.s

This commit is contained in:
Steins7 2024-04-06 16:28:08 +02:00
parent ccf36ac400
commit 7a19ae9223

View File

@ -4,7 +4,7 @@
* This startup file provides a reset handler to setup the basics for c to run * This startup file provides a reset handler to setup the basics for c to run
* (stack pointer, static data, ...) as well as the vector table and the * (stack pointer, static data, ...) as well as the vector table and the
* differents interrupt handlers that go with it. By default, all handlers use * differents interrupt handlers that go with it. By default, all handlers use
* the default handler wich is simply and infinite loop * the default handler wich is simply an infinite loop
*/ */
.syntax unified .syntax unified
@ -25,7 +25,7 @@
*/ */
.section .text.hdr_reset .section .text.hdr_reset
.weak hdr_reset .weak hdr_reset
.type hdr_reset, %function .type hdr_reset, %function
hdr_reset: hdr_reset:
ldr r0, = _estack ldr r0, = _estack
mov sp, r0 mov sp, r0
@ -75,19 +75,19 @@ bss_init_end:
*/ */
.section .text.hdr_default, "ax", %progbits .section .text.hdr_default, "ax", %progbits
.weak hdr_default .weak hdr_default
hdr_default: hdr_default:
b hdr_default b hdr_default
.size hdr_default, .-hdr_default .size hdr_default, .-hdr_default
//--Vector table---------------------------------------------------------------- //--Vector table----------------------------------------------------------------
.section .vector_table, "a", %progbits .section .vector_table, "a", %progbits
.type vector_table, %object .type vector_table, %object
.size vector_table, .-vector_table .size vector_table, .-vector_table
vector_table: vector_table:
.word _estack .word _estack
.word hdr_reset .word hdr_reset
.word hdr_nmi .word hdr_nmi
@ -165,7 +165,7 @@ vector_table:
.word hdr_dma2_channel3 .word hdr_dma2_channel3
.word hdr_dma2_channel4_5 .word hdr_dma2_channel4_5
//--Weak definitions------------------------------------------------------------ //--Weak definitions------------------------------------------------------------
.weak hdr_nmi .weak hdr_nmi
.thumb_set hdr_nmi, hdr_default .thumb_set hdr_nmi, hdr_default