From 6085f6826d9c19a9d0c7f3feafbd0a5996d7ec2e Mon Sep 17 00:00:00 2001 From: weety Date: Thu, 19 Oct 2017 23:46:17 +0800 Subject: [bsp][at91sam9260] Fix the problem of the finsh function failure by using component initialization. --- libcpu/arm/arm926/start_gcc.S | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libcpu/arm') diff --git a/libcpu/arm/arm926/start_gcc.S b/libcpu/arm/arm926/start_gcc.S index 4924583cb8..1ccff156b0 100644 --- a/libcpu/arm/arm926/start_gcc.S +++ b/libcpu/arm/arm926/start_gcc.S @@ -95,8 +95,8 @@ SVC_STACK_START: .section .init, "ax" .arm - .global entry -entry: + .global start +start: LDR PC, vector_reset LDR PC, vector_undef LDR PC, vector_swi @@ -204,7 +204,7 @@ ctor_loop: ctor_end: @; Enter the C code - LDR R0, =main + LDR R0, =rtthread_startup BLX R0 @;----------------- Exception Handler ----------------------------------------- -- cgit v1.3.1