summaryrefslogtreecommitdiff
path: root/libcpu/arm/cortex-a/start_gcc.S
diff options
context:
space:
mode:
authorfenghuijie <[email protected]>2021-07-05 18:33:22 +0800
committerfenghuijie <[email protected]>2021-07-05 18:33:22 +0800
commit0015af02e4f08ab47f2d2fefcb7c1aca1682bfda (patch)
treefded7632c1ea03699173ce94ba627544669786f1 /libcpu/arm/cortex-a/start_gcc.S
parente933c1f6105caf4e68bd57bc5521767b32063a5f (diff)
调整代码,以支持cpu usage
Diffstat (limited to 'libcpu/arm/cortex-a/start_gcc.S')
-rw-r--r--libcpu/arm/cortex-a/start_gcc.S2
1 files changed, 2 insertions, 0 deletions
diff --git a/libcpu/arm/cortex-a/start_gcc.S b/libcpu/arm/cortex-a/start_gcc.S
index 6c5dd81785..908468476e 100644
--- a/libcpu/arm/cortex-a/start_gcc.S
+++ b/libcpu/arm/cortex-a/start_gcc.S
@@ -341,6 +341,8 @@ rt_hw_context_switch_interrupt_do:
ldr r6, [r6]
ldr sp, [r6] @ get new task's stack pointer
+ bl rt_interrupt_hook
+
#ifdef RT_USING_FPU
/* fpu context */
ldmfd sp!, {r6}