mirror of
				https://github.com/FreeRTOS/FreeRTOS-Kernel.git
				synced 2025-11-04 02:59:01 +01:00 
			
		
		
		
	Make configSUPPORT_STATIC_ALLOCATION==1 an error for MPU ports (#953)
* Error when configSUPPORT_STATIC_ALLOCATION is set for MPU ports * Uncrustify: triggered by comment. --------- Co-authored-by: GitHub Action <action@github.com> Co-authored-by: Soren Ptak <ptaksoren@gmail.com>
This commit is contained in:
		
							parent
							
								
									c083af972a
								
							
						
					
					
						commit
						aa07289c24
					
				
							
								
								
									
										7
									
								
								tasks.c
									
									
									
									
									
								
							
							
						
						
									
										7
									
								
								tasks.c
									
									
									
									
									
								
							@ -41,6 +41,13 @@
 | 
			
		||||
#include "timers.h"
 | 
			
		||||
#include "stack_macros.h"
 | 
			
		||||
 | 
			
		||||
/* The default definitions are only available for non-MPU ports. The
 | 
			
		||||
 * reason is that the stack alignment requirements vary for different
 | 
			
		||||
 * architectures.*/
 | 
			
		||||
#if ( ( configSUPPORT_STATIC_ALLOCATION == 1 ) && ( configKERNEL_PROVIDED_STATIC_MEMORY == 1 ) && ( portUSING_MPU_WRAPPERS != 0 ) )
 | 
			
		||||
    #error configKERNEL_PROVIDED_STATIC_MEMORY cannot be set to 1 when using an MPU port. The vApplicationGet*TaskMemory() functions must be provided manually.
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
/* The MPU ports require MPU_WRAPPERS_INCLUDED_FROM_API_FILE to be defined
 | 
			
		||||
 * for the header files above, but not in this file, in order to generate the
 | 
			
		||||
 * correct privileged Vs unprivileged linkage and placement. */
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user