Skip to content

Commit

Permalink
Fix #148: use link-time value of base of vectors in HAL startup sequence
Browse files Browse the repository at this point in the history
  • Loading branch information
terrillmoore committed Apr 3, 2021
1 parent 496ac0e commit 0c07a1a
Show file tree
Hide file tree
Showing 17 changed files with 70 additions and 79 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
.fpu softvfp
.thumb

.global g_pfnVectors
.global _HAL_g_pfnVectors
.global Default_Handler

/* start address for the initialization values of the .data section.
Expand Down Expand Up @@ -149,11 +149,11 @@ Infinite_Loop:
*
******************************************************************************/
.section .isr_vector,"a",%progbits
.type g_pfnVectors, %object
.size g_pfnVectors, .-g_pfnVectors
.type _HAL_g_pfnVectors, %object
.size _HAL_g_pfnVectors, .-_HAL_g_pfnVectors


g_pfnVectors:
_HAL_g_pfnVectors:
.word _estack
.word Reset_Handler
.word NMI_Handler
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
.fpu softvfp
.thumb

.global g_pfnVectors
.global _HAL_g_pfnVectors
.global Default_Handler

/* start address for the initialization values of the .data section.
Expand Down Expand Up @@ -149,11 +149,11 @@ Infinite_Loop:
*
******************************************************************************/
.section .isr_vector,"a",%progbits
.type g_pfnVectors, %object
.size g_pfnVectors, .-g_pfnVectors
.type _HAL_g_pfnVectors, %object
.size _HAL_g_pfnVectors, .-_HAL_g_pfnVectors


g_pfnVectors:
_HAL_g_pfnVectors:
.word _estack
.word Reset_Handler
.word NMI_Handler
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
.fpu softvfp
.thumb

.global g_pfnVectors
.global _HAL_g_pfnVectors
.global Default_Handler

/* start address for the initialization values of the .data section.
Expand Down Expand Up @@ -129,11 +129,11 @@ Infinite_Loop:
*
******************************************************************************/
.section .isr_vector,"a",%progbits
.type g_pfnVectors, %object
.size g_pfnVectors, .-g_pfnVectors
.type _HAL_g_pfnVectors, %object
.size _HAL_g_pfnVectors, .-_HAL_g_pfnVectors


g_pfnVectors:
_HAL_g_pfnVectors:
.word _estack
.word Reset_Handler
.word NMI_Handler
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
.fpu softvfp
.thumb

.global g_pfnVectors
.global _HAL_g_pfnVectors
.global Default_Handler

/* start address for the initialization values of the .data section.
Expand Down Expand Up @@ -129,11 +129,11 @@ Infinite_Loop:
*
******************************************************************************/
.section .isr_vector,"a",%progbits
.type g_pfnVectors, %object
.size g_pfnVectors, .-g_pfnVectors
.type _HAL_g_pfnVectors, %object
.size _HAL_g_pfnVectors, .-_HAL_g_pfnVectors


g_pfnVectors:
_HAL_g_pfnVectors:
.word _estack
.word Reset_Handler
.word NMI_Handler
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
.fpu softvfp
.thumb

.global g_pfnVectors
.global _HAL_g_pfnVectors
.global Default_Handler

/* start address for the initialization values of the .data section.
Expand Down Expand Up @@ -129,11 +129,11 @@ Infinite_Loop:
*
******************************************************************************/
.section .isr_vector,"a",%progbits
.type g_pfnVectors, %object
.size g_pfnVectors, .-g_pfnVectors
.type _HAL_g_pfnVectors, %object
.size _HAL_g_pfnVectors, .-_HAL_g_pfnVectors


g_pfnVectors:
_HAL_g_pfnVectors:
.word _estack
.word Reset_Handler
.word NMI_Handler
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
.fpu softvfp
.thumb

.global g_pfnVectors
.global _HAL_g_pfnVectors
.global Default_Handler

/* start address for the initialization values of the .data section.
Expand Down Expand Up @@ -129,11 +129,11 @@ Infinite_Loop:
*
******************************************************************************/
.section .isr_vector,"a",%progbits
.type g_pfnVectors, %object
.size g_pfnVectors, .-g_pfnVectors
.type _HAL_g_pfnVectors, %object
.size _HAL_g_pfnVectors, .-_HAL_g_pfnVectors


g_pfnVectors:
_HAL_g_pfnVectors:
.word _estack
.word Reset_Handler
.word NMI_Handler
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
.fpu softvfp
.thumb

.global g_pfnVectors
.global _HAL_g_pfnVectors
.global Default_Handler

/* start address for the initialization values of the .data section.
Expand Down Expand Up @@ -129,11 +129,11 @@ Infinite_Loop:
*
******************************************************************************/
.section .isr_vector,"a",%progbits
.type g_pfnVectors, %object
.size g_pfnVectors, .-g_pfnVectors
.type _HAL_g_pfnVectors, %object
.size _HAL_g_pfnVectors, .-_HAL_g_pfnVectors


g_pfnVectors:
_HAL_g_pfnVectors:
.word _estack
.word Reset_Handler
.word NMI_Handler
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
.fpu softvfp
.thumb

.global g_pfnVectors
.global _HAL_g_pfnVectors
.global Default_Handler

/* start address for the initialization values of the .data section.
Expand Down Expand Up @@ -129,11 +129,11 @@ Infinite_Loop:
*
******************************************************************************/
.section .isr_vector,"a",%progbits
.type g_pfnVectors, %object
.size g_pfnVectors, .-g_pfnVectors
.type _HAL_g_pfnVectors, %object
.size _HAL_g_pfnVectors, .-_HAL_g_pfnVectors


g_pfnVectors:
_HAL_g_pfnVectors:
.word _estack
.word Reset_Handler
.word NMI_Handler
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
.fpu softvfp
.thumb

.global g_pfnVectors
.global _HAL_g_pfnVectors
.global Default_Handler

/* start address for the initialization values of the .data section.
Expand Down Expand Up @@ -129,11 +129,11 @@ Infinite_Loop:
*
******************************************************************************/
.section .isr_vector,"a",%progbits
.type g_pfnVectors, %object
.size g_pfnVectors, .-g_pfnVectors
.type _HAL_g_pfnVectors, %object
.size _HAL_g_pfnVectors, .-_HAL_g_pfnVectors


g_pfnVectors:
_HAL_g_pfnVectors:
.word _estack
.word Reset_Handler
.word NMI_Handler
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
.fpu softvfp
.thumb

.global g_pfnVectors
.global _HAL_g_pfnVectors
.global Default_Handler

/* start address for the initialization values of the .data section.
Expand Down Expand Up @@ -129,11 +129,11 @@ Infinite_Loop:
*
******************************************************************************/
.section .isr_vector,"a",%progbits
.type g_pfnVectors, %object
.size g_pfnVectors, .-g_pfnVectors
.type _HAL_g_pfnVectors, %object
.size _HAL_g_pfnVectors, .-_HAL_g_pfnVectors


g_pfnVectors:
_HAL_g_pfnVectors:
.word _estack
.word Reset_Handler
.word NMI_Handler
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
.fpu softvfp
.thumb

.global g_pfnVectors
.global _HAL_g_pfnVectors
.global Default_Handler

/* start address for the initialization values of the .data section.
Expand Down Expand Up @@ -129,11 +129,11 @@ Infinite_Loop:
*
******************************************************************************/
.section .isr_vector,"a",%progbits
.type g_pfnVectors, %object
.size g_pfnVectors, .-g_pfnVectors
.type _HAL_g_pfnVectors, %object
.size _HAL_g_pfnVectors, .-_HAL_g_pfnVectors


g_pfnVectors:
_HAL_g_pfnVectors:
.word _estack
.word Reset_Handler
.word NMI_Handler
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
.fpu softvfp
.thumb

.global g_pfnVectors
.global _HAL_g_pfnVectors
.global Default_Handler

/* start address for the initialization values of the .data section.
Expand Down Expand Up @@ -129,11 +129,11 @@ Infinite_Loop:
*
******************************************************************************/
.section .isr_vector,"a",%progbits
.type g_pfnVectors, %object
.size g_pfnVectors, .-g_pfnVectors
.type _HAL_g_pfnVectors, %object
.size _HAL_g_pfnVectors, .-_HAL_g_pfnVectors


g_pfnVectors:
_HAL_g_pfnVectors:
.word _estack
.word Reset_Handler
.word NMI_Handler
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
.fpu softvfp
.thumb

.global g_pfnVectors
.global _HAL_g_pfnVectors
.global Default_Handler

/* start address for the initialization values of the .data section.
Expand Down Expand Up @@ -129,11 +129,11 @@ Infinite_Loop:
*
******************************************************************************/
.section .isr_vector,"a",%progbits
.type g_pfnVectors, %object
.size g_pfnVectors, .-g_pfnVectors
.type _HAL_g_pfnVectors, %object
.size _HAL_g_pfnVectors, .-_HAL_g_pfnVectors


g_pfnVectors:
_HAL_g_pfnVectors:
.word _estack
.word Reset_Handler
.word NMI_Handler
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
.fpu softvfp
.thumb

.global g_pfnVectors
.global _HAL_g_pfnVectors
.global Default_Handler

/* start address for the initialization values of the .data section.
Expand Down Expand Up @@ -129,11 +129,11 @@ Infinite_Loop:
*
******************************************************************************/
.section .isr_vector,"a",%progbits
.type g_pfnVectors, %object
.size g_pfnVectors, .-g_pfnVectors
.type _HAL_g_pfnVectors, %object
.size _HAL_g_pfnVectors, .-_HAL_g_pfnVectors


g_pfnVectors:
_HAL_g_pfnVectors:
.word _estack
.word Reset_Handler
.word NMI_Handler
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
.fpu softvfp
.thumb

.global g_pfnVectors
.global _HAL_g_pfnVectors
.global Default_Handler

/* start address for the initialization values of the .data section.
Expand Down Expand Up @@ -129,11 +129,11 @@ Infinite_Loop:
*
******************************************************************************/
.section .isr_vector,"a",%progbits
.type g_pfnVectors, %object
.size g_pfnVectors, .-g_pfnVectors
.type _HAL_g_pfnVectors, %object
.size _HAL_g_pfnVectors, .-_HAL_g_pfnVectors


g_pfnVectors:
_HAL_g_pfnVectors:
.word _estack
.word Reset_Handler
.word NMI_Handler
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
.fpu softvfp
.thumb

.global g_pfnVectors
.global _HAL_g_pfnVectors
.global Default_Handler

/* start address for the initialization values of the .data section.
Expand Down Expand Up @@ -129,11 +129,11 @@ Infinite_Loop:
*
******************************************************************************/
.section .isr_vector,"a",%progbits
.type g_pfnVectors, %object
.size g_pfnVectors, .-g_pfnVectors
.type _HAL_g_pfnVectors, %object
.size _HAL_g_pfnVectors, .-_HAL_g_pfnVectors


g_pfnVectors:
_HAL_g_pfnVectors:
.word _estack
.word Reset_Handler
.word NMI_Handler
Expand Down
Loading

0 comments on commit 0c07a1a

Please sign in to comment.