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 f5e8495cacf9ca7c8099924646df2e438898caf1..bb8156683dc22b0732dc5bed70dd224c6ac0d6f0 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