From b3054e8f0f9db17b7bb451c6e77b7930724444a1 Mon Sep 17 00:00:00 2001 From: Harmonica Date: Sat, 17 Oct 2020 16:13:15 +0800 Subject: [PATCH] update kernel/liteos_m/arch/arm/cortex-m/cortex-m4/los_dispatch_gcc.S. --- .../liteos_m/arch/arm/cortex-m/cortex-m4/los_dispatch_gcc.S | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kernel/liteos_m/arch/arm/cortex-m/cortex-m4/los_dispatch_gcc.S b/kernel/liteos_m/arch/arm/cortex-m/cortex-m4/los_dispatch_gcc.S index f5e8495c..bb815668 100644 --- a/kernel/liteos_m/arch/arm/cortex-m/cortex-m4/los_dispatch_gcc.S +++ b/kernel/liteos_m/arch/arm/cortex-m/cortex-m4/los_dispatch_gcc.S @@ -128,6 +128,7 @@ LOS_IntRestore: .type osTaskSchedule, %function .global osTaskSchedule +;进程调度函数,设置pendsv中断 osTaskSchedule: .fnstart .cantunwind @@ -140,7 +141,7 @@ osTaskSchedule: - +;pendsv中断处理函数 .type osPendSV, %function .global osPendSV osPendSV: @@ -157,6 +158,7 @@ osPendSV: blx r2 pop {r12, lr} +;进程切换函数 TaskSwitch: mrs r0, psp -- GitLab