[libcpu][arm926] Define vector table start at BSP/{board}/platform/ assemble INC files.

This commit is contained in:
ardafu 2015-04-16 10:35:12 +08:00
parent a478e0b41a
commit cf3d639fcb
6 changed files with 9 additions and 3 deletions

View File

@ -29,3 +29,5 @@
.equ IRQ_STK_SIZE, 4096
.equ FIQ_STK_SIZE, 4096
.equ SYS_STK_SIZE, 2048
/* vector table start should be 0x00000000 or 0xFFFF0000 */
.equ VECTOR_TABLE_START, 0x00000000

View File

@ -29,3 +29,5 @@
#define IRQ_STK_SIZE 1024
#define FIQ_STK_SIZE 1024
#define SYS_STK_SIZE 512
/* vector table start should be 0x00000000 or 0xFFFF0000 */
#define VECTOR_TABLE_START 0x00000000

View File

@ -29,4 +29,6 @@ ABT_STK_SIZE EQU 512
IRQ_STK_SIZE EQU 1024
FIQ_STK_SIZE EQU 1024
SYS_STK_SIZE EQU 512
;/* vector table start should be 0x00000000 or 0xFFFF0000 */
VECTOR_TABLE_START 0x00000000
END

View File

@ -142,7 +142,7 @@ Reset_Handler:
@; Copy Exception Vectors to Internal RAM
LDR R8, =entry @; Source
LDR R9, =0x00000000 @; Destination
LDR R9, =VECTOR_TABLE_START @; Destination
CMP R8, R9
BEQ Setup_Stack
LDMIA R8!, {R0-R7} @; Load Vectors

View File

@ -143,7 +143,7 @@ Reset_Handler:
; Copy Exception Vectors to Internal RAM
LDR R8, =Entry_Point ; Source
LDR R9, =0x00000000 ; Destination
LDR R9, =VECTOR_TABLE_START ; Destination
CMP R8, R9
BEQ Setup_Stack
LDMIA R8!, {R0-R7} ; Load Vectors

View File

@ -150,7 +150,7 @@ Reset_Handler
; Copy Exception Vectors to Internal RAM
LDR R8, =Entry_Point ; Source
LDR R9, =0x00000000 ; Destination
LDR R9, =VECTOR_TABLE_START ; Destination
CMP R8, R9
BEQ Setup_Stack
LDMIA R8!, {R0-R7} ; Load Vectors