mirror of
				https://github.com/FreeRTOS/FreeRTOS-Kernel.git
				synced 2025-11-04 11:09:01 +01:00 
			
		
		
		
	Rmove MPU_pvPortMalloc and MPU_vPortFree from mpu_wrappers.c (#88)
These definitions were not useful because the corresponding mapping was removed from mpu_wrappers.h earlier. Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com>
This commit is contained in:
		
							parent
							
								
									149f06c70f
								
							
						
					
					
						commit
						c273690296
					
				@ -958,33 +958,6 @@ void MPU_vQueueDelete( QueueHandle_t xQueue ) /* FREERTOS_SYSTEM_CALL */
 | 
			
		||||
}
 | 
			
		||||
/*-----------------------------------------------------------*/
 | 
			
		||||
 | 
			
		||||
#if ( configSUPPORT_DYNAMIC_ALLOCATION == 1 )
 | 
			
		||||
    void * MPU_pvPortMalloc( size_t xSize ) /* FREERTOS_SYSTEM_CALL */
 | 
			
		||||
    {
 | 
			
		||||
        void * pvReturn;
 | 
			
		||||
        BaseType_t xRunningPrivileged = xPortRaisePrivilege();
 | 
			
		||||
 | 
			
		||||
        pvReturn = pvPortMalloc( xSize );
 | 
			
		||||
 | 
			
		||||
        vPortResetPrivilege( xRunningPrivileged );
 | 
			
		||||
 | 
			
		||||
        return pvReturn;
 | 
			
		||||
    }
 | 
			
		||||
#endif /* configSUPPORT_DYNAMIC_ALLOCATION */
 | 
			
		||||
/*-----------------------------------------------------------*/
 | 
			
		||||
 | 
			
		||||
#if ( configSUPPORT_DYNAMIC_ALLOCATION == 1 )
 | 
			
		||||
    void MPU_vPortFree( void * pv ) /* FREERTOS_SYSTEM_CALL */
 | 
			
		||||
    {
 | 
			
		||||
        BaseType_t xRunningPrivileged = xPortRaisePrivilege();
 | 
			
		||||
 | 
			
		||||
        vPortFree( pv );
 | 
			
		||||
 | 
			
		||||
        vPortResetPrivilege( xRunningPrivileged );
 | 
			
		||||
    }
 | 
			
		||||
#endif /* configSUPPORT_DYNAMIC_ALLOCATION */
 | 
			
		||||
/*-----------------------------------------------------------*/
 | 
			
		||||
 | 
			
		||||
#if ( configSUPPORT_DYNAMIC_ALLOCATION == 1 )
 | 
			
		||||
    void MPU_vPortInitialiseBlocks( void ) /* FREERTOS_SYSTEM_CALL */
 | 
			
		||||
    {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user