From 2c70527c58b0174094fbb54b84831a25ab3ffbf3 Mon Sep 17 00:00:00 2001 From: wanghengZzz Date: Fri, 31 Jul 2026 10:33:26 +0800 Subject: [PATCH 1/2] fix: remove trailing semicolon from portYIELD() in RISC-V port --- portable/GCC/RISC-V/portmacro.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/portable/GCC/RISC-V/portmacro.h b/portable/GCC/RISC-V/portmacro.h index a516a246735..d906c61bdc3 100644 --- a/portable/GCC/RISC-V/portmacro.h +++ b/portable/GCC/RISC-V/portmacro.h @@ -91,7 +91,7 @@ typedef portUBASE_TYPE TickType_t; /* Scheduler utilities. */ extern void vTaskSwitchContext( void ); -#define portYIELD() __asm volatile ( "ecall" ); +#define portYIELD() __asm volatile ( "ecall" ) #define portEND_SWITCHING_ISR( xSwitchRequired ) \ do \ { \ From 3cca11bc6948dd7fd1e19f4eea5f31551bb42851 Mon Sep 17 00:00:00 2001 From: wanghengZzz Date: Fri, 31 Jul 2026 15:57:24 +0800 Subject: [PATCH 2/2] fix: remove trailing semicolon from portYIELD() in RISC-V IAR port --- portable/IAR/RISC-V/portmacro.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/portable/IAR/RISC-V/portmacro.h b/portable/IAR/RISC-V/portmacro.h index c7237b363cf..30d1cb574e9 100644 --- a/portable/IAR/RISC-V/portmacro.h +++ b/portable/IAR/RISC-V/portmacro.h @@ -93,7 +93,7 @@ typedef portUBASE_TYPE TickType_t; /* Scheduler utilities. */ extern void vTaskSwitchContext( void ); -#define portYIELD() __asm volatile ( "ecall" ); +#define portYIELD() __asm volatile ( "ecall" ) #define portEND_SWITCHING_ISR( xSwitchRequired ) \ do \ { \