mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-08-31 07:28:37 -04:00
Update Risc-V port to use environment call in place of software interrupt - still very much a work in progress.
This commit is contained in:
parent
baee711cb6
commit
8cef339aec
3 changed files with 30 additions and 12 deletions
|
@ -70,7 +70,7 @@ not need to be guarded with a critical section. */
|
|||
|
||||
|
||||
/* Scheduler utilities. */
|
||||
#define portYIELD() *( ( uint32_t * ) configCTRL_BASE ) = 1UL
|
||||
#define portYIELD() __asm volatile( "ecall" ); // software interrupt alternative *( ( uint32_t * ) configCTRL_BASE ) |= 0x08UL
|
||||
#define portEND_SWITCHING_ISR( xSwitchRequired ) if( xSwitchRequired ) vPortYield()
|
||||
#define portYIELD_FROM_ISR( x ) portEND_SWITCHING_ISR( x )
|
||||
/*-----------------------------------------------------------*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue