首先贴出今天要与大家分享的内容源码(位于内核源码的 os_cpu_a.asm 中): PendSV_Handler CPSID I MRS R0, PSP CBZ R0, PendSV_Handler_Nosave SUBS R0, R0, #0x20 STM R0, {R4-R11} LDR R1, =OSTCBCur LDR R1, [R1] STR R0, [R1] PendSV_Handler_Nosave PUSH {R14} LDR R0, =OSTaskSwHook BLX R0…