mirror of
https://gitee.com/cosyos/cosyos.git
synced 2026-02-05 19:39:42 +08:00
update Port/Cortex-M/port_cmx_s.c.
Signed-off-by: 零中断延迟的RTOS <cosyos@139.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user