修改lwp支持中arm cortex-a的swi入口函数处理
This commit is contained in:
parent
12610f76ae
commit
1e7bd3d8a1
|
@ -45,9 +45,9 @@ lwp_user_entry:
|
||||||
/*
|
/*
|
||||||
* void SVC_Handler(void);
|
* void SVC_Handler(void);
|
||||||
*/
|
*/
|
||||||
.global SVC_Handler
|
.global vector_swi
|
||||||
.type SVC_Handler, % function
|
.type vector_swi, % function
|
||||||
SVC_Handler:
|
vector_swi:
|
||||||
push {lr}
|
push {lr}
|
||||||
mrs lr, spsr
|
mrs lr, spsr
|
||||||
push {r4, r5, lr}
|
push {r4, r5, lr}
|
||||||
|
|
|
@ -43,11 +43,11 @@ lwp_user_entry:
|
||||||
movs pc, r1
|
movs pc, r1
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* void SVC_Handler(void);
|
* void vector_swi(void);
|
||||||
*/
|
*/
|
||||||
.global SVC_Handler
|
.global vector_swi
|
||||||
.type SVC_Handler, % function
|
.type vector_swi, % function
|
||||||
SVC_Handler:
|
vector_swi:
|
||||||
push {lr}
|
push {lr}
|
||||||
mrs lr, spsr
|
mrs lr, spsr
|
||||||
push {r4, r5, lr}
|
push {r4, r5, lr}
|
||||||
|
|
|
@ -241,9 +241,7 @@ rt_hw_context_switch_interrupt_do:
|
||||||
.endm
|
.endm
|
||||||
|
|
||||||
.align 5
|
.align 5
|
||||||
.globl vector_swi
|
.weak vector_swi
|
||||||
.weak SVC_Handler
|
|
||||||
SVC_Handler:
|
|
||||||
vector_swi:
|
vector_swi:
|
||||||
push_svc_reg
|
push_svc_reg
|
||||||
bl rt_hw_trap_swi
|
bl rt_hw_trap_swi
|
||||||
|
|
Loading…
Reference in New Issue