mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-12-19 18:15:16 -05:00
Reverted modified source and header files to last commit before we started the VeriFast proofs.
Files reset to commit 13f034eb74
This commit is contained in:
parent
dcbaf3863b
commit
1d3fcdfc1f
6 changed files with 59 additions and 1850 deletions
|
|
@ -128,8 +128,6 @@
|
|||
StackType_t * pxPortInitialiseStack( StackType_t * pxTopOfStack,
|
||||
TaskFunction_t pxCode,
|
||||
void * pvParameters ) PRIVILEGED_FUNCTION;
|
||||
///@ requires true;
|
||||
///@ ensures true;
|
||||
#endif
|
||||
#endif /* if ( portUSING_MPU_WRAPPERS == 1 ) */
|
||||
|
||||
|
|
@ -172,30 +170,11 @@ void vPortDefineHeapRegions( const HeapRegion_t * const pxHeapRegions ) PRIVILEG
|
|||
*/
|
||||
void vPortGetHeapStats( HeapStats_t * pxHeapStats );
|
||||
|
||||
#ifdef VERIFAST
|
||||
/* Reason for rewrite:
|
||||
* VeriFast treats the `malloc` and `free` functions specially,
|
||||
* in a particular built-in way that cannot be axiomatized within
|
||||
* VeriFast's specification language.
|
||||
*
|
||||
* When `malloc( sizeof(struct S) )` is called for a user defined
|
||||
* struct `S`, VeriFast instantiates the corresponding
|
||||
* `malloc_block_S(...)` predicate as well as points-to chunks
|
||||
* for its fields.
|
||||
* Reversely, calling `free` cleans up all the predicates instantiated
|
||||
* by `malloc`.
|
||||
*/
|
||||
#define pvPortMalloc malloc
|
||||
#define vPortFree(ptr) free( (void*) ptr)
|
||||
#else
|
||||
/*
|
||||
* Map to the memory management routines required for the port.
|
||||
*/
|
||||
void * pvPortMalloc( size_t xSize ) PRIVILEGED_FUNCTION;
|
||||
void vPortFree( void * pv ) PRIVILEGED_FUNCTION;
|
||||
#endif /* VERIFAST */
|
||||
|
||||
|
||||
/*
|
||||
* Map to the memory management routines required for the port.
|
||||
*/
|
||||
void * pvPortMalloc( size_t xSize ) PRIVILEGED_FUNCTION;
|
||||
void vPortFree( void * pv ) PRIVILEGED_FUNCTION;
|
||||
void vPortInitialiseBlocks( void ) PRIVILEGED_FUNCTION;
|
||||
size_t xPortGetFreeHeapSize( void ) PRIVILEGED_FUNCTION;
|
||||
size_t xPortGetMinimumEverFreeHeapSize( void ) PRIVILEGED_FUNCTION;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue