X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=FreeRTOS%2FSource%2Fportable%2FGCC%2FRISC-V-RV32%2Fportmacro.h;h=7132bf4bab32b48271a23ad2336946f92abb2510;hb=3341a29bfc974113e126cbf374cc52282627c898;hp=5d18ba34a0728cb17c2670003476d5c8cbe1c7d6;hpb=c46a78b713f1aa838e0c0c6f66209a0f4b7fde8e;p=freertos diff --git a/FreeRTOS/Source/portable/GCC/RISC-V-RV32/portmacro.h b/FreeRTOS/Source/portable/GCC/RISC-V-RV32/portmacro.h index 5d18ba34a..7132bf4ba 100644 --- a/FreeRTOS/Source/portable/GCC/RISC-V-RV32/portmacro.h +++ b/FreeRTOS/Source/portable/GCC/RISC-V-RV32/portmacro.h @@ -70,8 +70,7 @@ not need to be guarded with a critical section. */ /* Scheduler utilities. */ -extern void vPortYield( void ); -#define portYIELD() vPortYield() +#define portYIELD() { volatile uint32_t * const ulSoftInterrupt = ( uint32_t * ) 0x2000000; *ulSoftInterrupt = 1UL; } #define portEND_SWITCHING_ISR( xSwitchRequired ) if( xSwitchRequired ) vPortYield() #define portYIELD_FROM_ISR( x ) portEND_SWITCHING_ISR( x ) /*-----------------------------------------------------------*/