|
|
@ -1,6 +1,6 @@
|
|
|
|
/*
|
|
|
|
/*
|
|
|
|
* FreeRTOS V202012.00
|
|
|
|
* FreeRTOS V202012.00
|
|
|
|
* Copyright (C) Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
|
|
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
|
|
* Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
|
|
* this software and associated documentation files (the "Software"), to deal in
|
|
|
|
* this software and associated documentation files (the "Software"), to deal in
|
|
|
@ -18,6 +18,10 @@
|
|
|
|
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
|
|
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
|
|
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
|
|
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
|
|
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
|
|
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
|
|
|
|
|
|
*
|
|
|
|
|
|
|
|
* https://www.FreeRTOS.org
|
|
|
|
|
|
|
|
* https://github.com/FreeRTOS
|
|
|
|
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
#include "proof/queue.h"
|
|
|
|
#include "proof/queue.h"
|
|
|
@ -212,6 +216,9 @@ static void prvInitialiseNewQueue( const UBaseType_t uxQueueLength,
|
|
|
|
/* Check for multiplication overflow. */
|
|
|
|
/* Check for multiplication overflow. */
|
|
|
|
configASSERT( ( uxItemSize == 0 ) || ( uxQueueLength == ( xQueueSizeInBytes / uxItemSize ) ) );
|
|
|
|
configASSERT( ( uxItemSize == 0 ) || ( uxQueueLength == ( xQueueSizeInBytes / uxItemSize ) ) );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* Check for addition overflow. */
|
|
|
|
|
|
|
|
configASSERT( ( sizeof( Queue_t ) + xQueueSizeInBytes ) > xQueueSizeInBytes );
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef VERIFAST /*< ***model single malloc of struct and buffer*** */
|
|
|
|
#ifdef VERIFAST /*< ***model single malloc of struct and buffer*** */
|
|
|
|
pxNewQueue = ( Queue_t * ) pvPortMalloc( sizeof( Queue_t ) );
|
|
|
|
pxNewQueue = ( Queue_t * ) pvPortMalloc( sizeof( Queue_t ) );
|
|
|
|
#else
|
|
|
|
#else
|
|
|
|