提交 cf3d639f 编写于 作者: A ardafu

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

上级 a478e0b4
...@@ -29,3 +29,5 @@ ...@@ -29,3 +29,5 @@
.equ IRQ_STK_SIZE, 4096 .equ IRQ_STK_SIZE, 4096
.equ FIQ_STK_SIZE, 4096 .equ FIQ_STK_SIZE, 4096
.equ SYS_STK_SIZE, 2048 .equ SYS_STK_SIZE, 2048
/* vector table start should be 0x00000000 or 0xFFFF0000 */
.equ VECTOR_TABLE_START, 0x00000000
...@@ -29,3 +29,5 @@ ...@@ -29,3 +29,5 @@
#define IRQ_STK_SIZE 1024 #define IRQ_STK_SIZE 1024
#define FIQ_STK_SIZE 1024 #define FIQ_STK_SIZE 1024
#define SYS_STK_SIZE 512 #define SYS_STK_SIZE 512
/* vector table start should be 0x00000000 or 0xFFFF0000 */
#define VECTOR_TABLE_START 0x00000000
...@@ -29,4 +29,6 @@ ABT_STK_SIZE EQU 512 ...@@ -29,4 +29,6 @@ ABT_STK_SIZE EQU 512
IRQ_STK_SIZE EQU 1024 IRQ_STK_SIZE EQU 1024
FIQ_STK_SIZE EQU 1024 FIQ_STK_SIZE EQU 1024
SYS_STK_SIZE EQU 512 SYS_STK_SIZE EQU 512
;/* vector table start should be 0x00000000 or 0xFFFF0000 */
VECTOR_TABLE_START 0x00000000
END END
...@@ -142,7 +142,7 @@ Reset_Handler: ...@@ -142,7 +142,7 @@ Reset_Handler:
@; Copy Exception Vectors to Internal RAM @; Copy Exception Vectors to Internal RAM
LDR R8, =entry @; Source LDR R8, =entry @; Source
LDR R9, =0x00000000 @; Destination LDR R9, =VECTOR_TABLE_START @; Destination
CMP R8, R9 CMP R8, R9
BEQ Setup_Stack BEQ Setup_Stack
LDMIA R8!, {R0-R7} @; Load Vectors LDMIA R8!, {R0-R7} @; Load Vectors
......
...@@ -143,7 +143,7 @@ Reset_Handler: ...@@ -143,7 +143,7 @@ Reset_Handler:
; Copy Exception Vectors to Internal RAM ; Copy Exception Vectors to Internal RAM
LDR R8, =Entry_Point ; Source LDR R8, =Entry_Point ; Source
LDR R9, =0x00000000 ; Destination LDR R9, =VECTOR_TABLE_START ; Destination
CMP R8, R9 CMP R8, R9
BEQ Setup_Stack BEQ Setup_Stack
LDMIA R8!, {R0-R7} ; Load Vectors LDMIA R8!, {R0-R7} ; Load Vectors
......
...@@ -150,7 +150,7 @@ Reset_Handler ...@@ -150,7 +150,7 @@ Reset_Handler
; Copy Exception Vectors to Internal RAM ; Copy Exception Vectors to Internal RAM
LDR R8, =Entry_Point ; Source LDR R8, =Entry_Point ; Source
LDR R9, =0x00000000 ; Destination LDR R9, =VECTOR_TABLE_START ; Destination
CMP R8, R9 CMP R8, R9
BEQ Setup_Stack BEQ Setup_Stack
LDMIA R8!, {R0-R7} ; Load Vectors LDMIA R8!, {R0-R7} ; Load Vectors
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册