mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-12-11 22:25:14 -05:00
Reverted manual rewrites involving const pointers. Automatic rewrites are in place.
This commit is contained in:
parent
a470fec6d0
commit
a7fdaca373
1 changed files with 5 additions and 20 deletions
21
tasks.c
21
tasks.c
|
|
@ -2194,10 +2194,9 @@ static void prvAddNewTaskToReadyList( TCB_t * pxNewTCB )
|
|||
eTaskState eReturn;
|
||||
#ifdef VERIFAST
|
||||
/* Reason for rewrite:
|
||||
* VeriFast does not support the following:
|
||||
* - const pointers
|
||||
* - multiple pointer declarations to user-defined types in single
|
||||
* statement (i.e., `A p1, p2;` is ok, `A *p1, *p2;` fails)
|
||||
* VeriFast does not support multiple pointer declarations to
|
||||
* user-defined types in single statement (i.e., `A p1, p2;` is ok,
|
||||
* `A *p1, *p2;` fails)
|
||||
*/
|
||||
List_t const * pxStateList;
|
||||
List_t const * pxDelayedList;
|
||||
|
|
@ -2802,14 +2801,7 @@ static void prvAddNewTaskToReadyList( TCB_t * pxNewTCB )
|
|||
|
||||
void vTaskResume( TaskHandle_t xTaskToResume )
|
||||
{
|
||||
#ifdef VERIFAST
|
||||
/* Reason for rewrite:
|
||||
* VeriFast does not support const pointers.
|
||||
*/
|
||||
TCB_t * pxTCB = xTaskToResume;
|
||||
#else
|
||||
TCB_t * const pxTCB = xTaskToResume;
|
||||
#endif /* VERIFAST */
|
||||
|
||||
/* It does not make sense to resume the calling task. */
|
||||
configASSERT( xTaskToResume );
|
||||
|
|
@ -5432,14 +5424,7 @@ static void prvResetNextTaskUnblockTime( void )
|
|||
|
||||
BaseType_t xTaskPriorityDisinherit( TaskHandle_t const pxMutexHolder )
|
||||
{
|
||||
#ifdef VERIFAST
|
||||
/* Reason for rewrite:
|
||||
* VeriFast does not support const pointers.
|
||||
*/
|
||||
TCB_t * pxTCB = pxMutexHolder;
|
||||
#else
|
||||
TCB_t * const pxTCB = pxMutexHolder;
|
||||
#endif /* VERIFAST */
|
||||
BaseType_t xReturn = pdFALSE;
|
||||
|
||||
if( pxMutexHolder != NULL )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue