mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-08-19 17:48:33 -04:00
Pass core ID to port lock macros (#1212)
Pass core ID to task/ISR lock functions
This commit is contained in:
parent
f63bc2b5cc
commit
f05244a8d5
7 changed files with 71 additions and 63 deletions
|
@ -123,19 +123,19 @@ extern void vPortYield( void );
|
|||
|
||||
/* Acquire the TASK lock. TASK lock is a recursive lock.
|
||||
* It should be able to be locked by the same core multiple times. */
|
||||
#define portGET_TASK_LOCK() do {} while( 0 )
|
||||
#define portGET_TASK_LOCK( xCoreID ) do {} while( 0 )
|
||||
|
||||
/* Release the TASK lock. If a TASK lock is locked by the same core multiple times,
|
||||
* it should be released as many times as it is locked. */
|
||||
#define portRELEASE_TASK_LOCK() do {} while( 0 )
|
||||
#define portRELEASE_TASK_LOCK( xCoreID ) do {} while( 0 )
|
||||
|
||||
/* Acquire the ISR lock. ISR lock is a recursive lock.
|
||||
* It should be able to be locked by the same core multiple times. */
|
||||
#define portGET_ISR_LOCK() do {} while( 0 )
|
||||
#define portGET_ISR_LOCK( xCoreID ) do {} while( 0 )
|
||||
|
||||
/* Release the ISR lock. If a ISR lock is locked by the same core multiple times, \
|
||||
* it should be released as many times as it is locked. */
|
||||
#define portRELEASE_ISR_LOCK() do {} while( 0 )
|
||||
#define portRELEASE_ISR_LOCK( xCoreID ) do {} while( 0 )
|
||||
|
||||
#endif /* if ( configNUMBER_OF_CORES > 1 ) */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue