mirror of
				https://github.com/FreeRTOS/FreeRTOS-Kernel.git
				synced 2025-11-04 11:09:01 +01:00 
			
		
		
		
	Remove configTOTAL_MPU_REGIONS from M3 MPU port (#966)
The number of MPU regions is not configurable for Cortex-M3 port and therefore, it is misleading to have configTOTAL_MPU_REGIONS in portmacro.h. It was added in PR #952. Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com>
This commit is contained in:
		
							parent
							
								
									d63434493a
								
							
						
					
					
						commit
						5a2237a1e2
					
				@ -86,15 +86,6 @@ typedef unsigned long    UBaseType_t;
 | 
			
		||||
#define portMPU_REGION_CACHEABLE_BUFFERABLE                      ( 0x07UL << 16UL )
 | 
			
		||||
#define portMPU_REGION_EXECUTE_NEVER                             ( 0x01UL << 28UL )
 | 
			
		||||
 | 
			
		||||
/* MPU settings that can be overriden in FreeRTOSConfig.h. */
 | 
			
		||||
#ifndef configTOTAL_MPU_REGIONS
 | 
			
		||||
    /* Define to 8 for backward compatibility. */
 | 
			
		||||
    #define configTOTAL_MPU_REGIONS    ( 8UL )
 | 
			
		||||
#elif( configTOTAL_MPU_REGIONS != 8UL )
 | 
			
		||||
    /* The Cortex M3 only supports 8 MPU regions. For more information refer to:
 | 
			
		||||
     * https://developer.arm.com/documentation/dui0552/a/cortex-m3-peripherals/optional-memory-protection-unit */
 | 
			
		||||
    #error configTOTAL_MPU_REGIONS must be 8 for this port.
 | 
			
		||||
#endif /* configTOTAL_MPU_REGIONS Check */
 | 
			
		||||
#define portSTACK_REGION                                         ( 3UL )
 | 
			
		||||
#define portGENERAL_PERIPHERALS_REGION                           ( 4UL )
 | 
			
		||||
#define portUNPRIVILEGED_FLASH_REGION                            ( 5UL )
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user