update Port/Cortex-M/port_cmx_s.c.

Signed-off-by: 零中断延迟的RTOS <cosyos@139.com>
This commit is contained in:
零中断延迟的RTOS
2025-08-14 17:10:36 +00:00
committed by Gitee
parent bc283240ac
commit 3279e6a98c

View File

@@ -3,8 +3,8 @@
* @file port_cmx_s.c
* @brief CMSIS Cortex-M Core Port File for Arm / GNU / IAR Compiler
* @author 迟凯峰
* @version V2.0.1
* @date 2025.08.13
* @version V2.0.2
* @date 2025.08.15
******************************************************************************/
#include "os_var.h"
@@ -219,6 +219,9 @@ extern s_tasknode_tsp s_task_news;
/* PendSV软中断 */
void OS_PendSV_Handler(void)
{
#if defined (__GNUC__)
__ASM volatile(".syntax unified");
#endif
#if !defined (__ICCARM__)
__ASM volatile(".THUMB");
#endif
@@ -312,6 +315,9 @@ void OS_PendSV_Handler(void)
#if (MCUCFG_PENDSVFIFO_DEPTH > 0)
void mPendSV_FIFOLoader(void *sv)
{
#if defined (__GNUC__)
__ASM volatile(".syntax unified");
#endif
#if !defined (__ICCARM__)
__ASM volatile(".THUMB");
#endif