From 7a19ae9223f53aec5780d66f265e5efcc9ea5773 Mon Sep 17 00:00:00 2001 From: Steins7 Date: Sat, 6 Apr 2024 16:28:08 +0200 Subject: [PATCH] Clean minor issues in startup.s --- startup.s | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/startup.s b/startup.s index 8f48739..a664898 100644 --- a/startup.s +++ b/startup.s @@ -4,7 +4,7 @@ * 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 * 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 @@ -25,7 +25,7 @@ */ .section .text.hdr_reset .weak hdr_reset - .type hdr_reset, %function + .type hdr_reset, %function hdr_reset: ldr r0, = _estack mov sp, r0 @@ -75,19 +75,19 @@ bss_init_end: */ .section .text.hdr_default, "ax", %progbits .weak hdr_default -hdr_default: + hdr_default: b hdr_default .size hdr_default, .-hdr_default -//--Vector table---------------------------------------------------------------- + //--Vector table---------------------------------------------------------------- .section .vector_table, "a", %progbits .type vector_table, %object .size vector_table, .-vector_table -vector_table: + vector_table: .word _estack .word hdr_reset .word hdr_nmi @@ -165,7 +165,7 @@ vector_table: .word hdr_dma2_channel3 .word hdr_dma2_channel4_5 -//--Weak definitions------------------------------------------------------------ + //--Weak definitions------------------------------------------------------------ .weak hdr_nmi .thumb_set hdr_nmi, hdr_default