[libcpu][cortex-a]modified start_gcc.S (#7810)
This commit is contained in:
parent
0ebec472e1
commit
2741bec8f7
@ -549,8 +549,8 @@ rt_hw_context_switch_interrupt_do:
|
|||||||
ldr r6, [r6]
|
ldr r6, [r6]
|
||||||
ldr sp, [r6] /* get new task's stack pointer */
|
ldr sp, [r6] /* get new task's stack pointer */
|
||||||
|
|
||||||
bl rt_thread_self
|
|
||||||
#ifdef RT_USING_SMART
|
#ifdef RT_USING_SMART
|
||||||
|
bl rt_thread_self
|
||||||
mov r4, r0
|
mov r4, r0
|
||||||
bl lwp_aspace_switch
|
bl lwp_aspace_switch
|
||||||
mov r0, r4
|
mov r0, r4
|
||||||
@ -622,8 +622,8 @@ vector_swi:
|
|||||||
vector_undef:
|
vector_undef:
|
||||||
push_svc_reg
|
push_svc_reg
|
||||||
bl rt_hw_trap_undef
|
bl rt_hw_trap_undef
|
||||||
cps #Mode_UND
|
|
||||||
#ifdef RT_USING_FPU
|
#ifdef RT_USING_FPU
|
||||||
|
cps #Mode_UND
|
||||||
sub sp, sp, #17 * 4
|
sub sp, sp, #17 * 4
|
||||||
ldr lr, [sp, #15*4]
|
ldr lr, [sp, #15*4]
|
||||||
ldmia sp, {r0 - r12}
|
ldmia sp, {r0 - r12}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user