mirror of
				https://github.com/FreeRTOS/FreeRTOS-Kernel.git
				synced 2025-11-03 18:22:45 -05:00 
			
		
		
		
	Remove error for 16 MPU resgion from IAR ports (#1149)
Support for 16 MPU regions was added to Cortex-M33, M35P, M55 and M85 ports was added but the compile time error check was not removed. This results in compilation error when 16 MPU regions are used. This PR removes the not needed compile time error check. It was reported here - https://forums.freertos.org/t/cortex-m55-and-16-region-mpu-support/21470. Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com>
This commit is contained in:
		
							parent
							
								
									9788e7e46a
								
							
						
					
					
						commit
						c0bfbb9692
					
				
					 13 changed files with 0 additions and 62 deletions
				
			
		| 
						 | 
					@ -54,11 +54,6 @@
 | 
				
			||||||
#define portDONT_DISCARD                 __root
 | 
					#define portDONT_DISCARD                 __root
 | 
				
			||||||
/*-----------------------------------------------------------*/
 | 
					/*-----------------------------------------------------------*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#if ( configTOTAL_MPU_REGIONS == 16 )
 | 
					 | 
				
			||||||
    #error 16 MPU regions are not yet supported for this port.
 | 
					 | 
				
			||||||
#endif
 | 
					 | 
				
			||||||
/*-----------------------------------------------------------*/
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
/* ARMv8-M common port configurations. */
 | 
					/* ARMv8-M common port configurations. */
 | 
				
			||||||
#include "portmacrocommon.h"
 | 
					#include "portmacrocommon.h"
 | 
				
			||||||
/*-----------------------------------------------------------*/
 | 
					/*-----------------------------------------------------------*/
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -58,16 +58,11 @@
 | 
				
			||||||
#include "portmacrocommon.h"
 | 
					#include "portmacrocommon.h"
 | 
				
			||||||
/*-----------------------------------------------------------*/
 | 
					/*-----------------------------------------------------------*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#if ( configTOTAL_MPU_REGIONS == 16 )
 | 
					 | 
				
			||||||
    #error 16 MPU regions are not yet supported for this port.
 | 
					 | 
				
			||||||
#endif
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
#ifndef configENABLE_MVE
 | 
					#ifndef configENABLE_MVE
 | 
				
			||||||
    #define configENABLE_MVE    0
 | 
					    #define configENABLE_MVE    0
 | 
				
			||||||
#elif( configENABLE_MVE != 0 )
 | 
					#elif( configENABLE_MVE != 0 )
 | 
				
			||||||
    #error configENABLE_MVE must be left undefined, or defined to 0 for the Cortex-M33.
 | 
					    #error configENABLE_MVE must be left undefined, or defined to 0 for the Cortex-M33.
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					 | 
				
			||||||
/*-----------------------------------------------------------*/
 | 
					/*-----------------------------------------------------------*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -58,10 +58,6 @@
 | 
				
			||||||
#include "portmacrocommon.h"
 | 
					#include "portmacrocommon.h"
 | 
				
			||||||
/*-----------------------------------------------------------*/
 | 
					/*-----------------------------------------------------------*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#if ( configTOTAL_MPU_REGIONS == 16 )
 | 
					 | 
				
			||||||
    #error 16 MPU regions are not yet supported for this port.
 | 
					 | 
				
			||||||
#endif
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
#ifndef configENABLE_MVE
 | 
					#ifndef configENABLE_MVE
 | 
				
			||||||
    #define configENABLE_MVE    0
 | 
					    #define configENABLE_MVE    0
 | 
				
			||||||
#elif( configENABLE_MVE != 0 )
 | 
					#elif( configENABLE_MVE != 0 )
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -63,11 +63,6 @@
 | 
				
			||||||
#include "portmacrocommon.h"
 | 
					#include "portmacrocommon.h"
 | 
				
			||||||
/*-----------------------------------------------------------*/
 | 
					/*-----------------------------------------------------------*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#if ( configTOTAL_MPU_REGIONS == 16 )
 | 
					 | 
				
			||||||
    #error 16 MPU regions are not yet supported for this port.
 | 
					 | 
				
			||||||
#endif
 | 
					 | 
				
			||||||
/*-----------------------------------------------------------*/
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 * @brief Critical section management.
 | 
					 * @brief Critical section management.
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -63,11 +63,6 @@
 | 
				
			||||||
#include "portmacrocommon.h"
 | 
					#include "portmacrocommon.h"
 | 
				
			||||||
/*-----------------------------------------------------------*/
 | 
					/*-----------------------------------------------------------*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#if ( configTOTAL_MPU_REGIONS == 16 )
 | 
					 | 
				
			||||||
    #error 16 MPU regions are not yet supported for this port.
 | 
					 | 
				
			||||||
#endif
 | 
					 | 
				
			||||||
/*-----------------------------------------------------------*/
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 * @brief Critical section management.
 | 
					 * @brief Critical section management.
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -54,11 +54,6 @@
 | 
				
			||||||
#define portDONT_DISCARD                 __root
 | 
					#define portDONT_DISCARD                 __root
 | 
				
			||||||
/*-----------------------------------------------------------*/
 | 
					/*-----------------------------------------------------------*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#if ( configTOTAL_MPU_REGIONS == 16 )
 | 
					 | 
				
			||||||
    #error 16 MPU regions are not yet supported for this port.
 | 
					 | 
				
			||||||
#endif
 | 
					 | 
				
			||||||
/*-----------------------------------------------------------*/
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
/* ARMv8-M common port configurations. */
 | 
					/* ARMv8-M common port configurations. */
 | 
				
			||||||
#include "portmacrocommon.h"
 | 
					#include "portmacrocommon.h"
 | 
				
			||||||
/*-----------------------------------------------------------*/
 | 
					/*-----------------------------------------------------------*/
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -58,16 +58,11 @@
 | 
				
			||||||
#include "portmacrocommon.h"
 | 
					#include "portmacrocommon.h"
 | 
				
			||||||
/*-----------------------------------------------------------*/
 | 
					/*-----------------------------------------------------------*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#if ( configTOTAL_MPU_REGIONS == 16 )
 | 
					 | 
				
			||||||
    #error 16 MPU regions are not yet supported for this port.
 | 
					 | 
				
			||||||
#endif
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
#ifndef configENABLE_MVE
 | 
					#ifndef configENABLE_MVE
 | 
				
			||||||
    #define configENABLE_MVE    0
 | 
					    #define configENABLE_MVE    0
 | 
				
			||||||
#elif( configENABLE_MVE != 0 )
 | 
					#elif( configENABLE_MVE != 0 )
 | 
				
			||||||
    #error configENABLE_MVE must be left undefined, or defined to 0 for the Cortex-M33.
 | 
					    #error configENABLE_MVE must be left undefined, or defined to 0 for the Cortex-M33.
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					 | 
				
			||||||
/*-----------------------------------------------------------*/
 | 
					/*-----------------------------------------------------------*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -58,10 +58,6 @@
 | 
				
			||||||
#include "portmacrocommon.h"
 | 
					#include "portmacrocommon.h"
 | 
				
			||||||
/*-----------------------------------------------------------*/
 | 
					/*-----------------------------------------------------------*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#if ( configTOTAL_MPU_REGIONS == 16 )
 | 
					 | 
				
			||||||
    #error 16 MPU regions are not yet supported for this port.
 | 
					 | 
				
			||||||
#endif
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
#ifndef configENABLE_MVE
 | 
					#ifndef configENABLE_MVE
 | 
				
			||||||
    #define configENABLE_MVE    0
 | 
					    #define configENABLE_MVE    0
 | 
				
			||||||
#elif( configENABLE_MVE != 0 )
 | 
					#elif( configENABLE_MVE != 0 )
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -58,10 +58,6 @@
 | 
				
			||||||
#include "portmacrocommon.h"
 | 
					#include "portmacrocommon.h"
 | 
				
			||||||
/*-----------------------------------------------------------*/
 | 
					/*-----------------------------------------------------------*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#if ( configTOTAL_MPU_REGIONS == 16 )
 | 
					 | 
				
			||||||
    #error 16 MPU regions are not yet supported for this port.
 | 
					 | 
				
			||||||
#endif
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
#ifndef configENABLE_MVE
 | 
					#ifndef configENABLE_MVE
 | 
				
			||||||
    #define configENABLE_MVE    0
 | 
					    #define configENABLE_MVE    0
 | 
				
			||||||
#elif( configENABLE_MVE != 0 )
 | 
					#elif( configENABLE_MVE != 0 )
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -63,11 +63,6 @@
 | 
				
			||||||
#include "portmacrocommon.h"
 | 
					#include "portmacrocommon.h"
 | 
				
			||||||
/*-----------------------------------------------------------*/
 | 
					/*-----------------------------------------------------------*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#if ( configTOTAL_MPU_REGIONS == 16 )
 | 
					 | 
				
			||||||
    #error 16 MPU regions are not yet supported for this port.
 | 
					 | 
				
			||||||
#endif
 | 
					 | 
				
			||||||
/*-----------------------------------------------------------*/
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 * @brief Critical section management.
 | 
					 * @brief Critical section management.
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -63,11 +63,6 @@
 | 
				
			||||||
#include "portmacrocommon.h"
 | 
					#include "portmacrocommon.h"
 | 
				
			||||||
/*-----------------------------------------------------------*/
 | 
					/*-----------------------------------------------------------*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#if ( configTOTAL_MPU_REGIONS == 16 )
 | 
					 | 
				
			||||||
    #error 16 MPU regions are not yet supported for this port.
 | 
					 | 
				
			||||||
#endif
 | 
					 | 
				
			||||||
/*-----------------------------------------------------------*/
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 * @brief Critical section management.
 | 
					 * @brief Critical section management.
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -63,11 +63,6 @@
 | 
				
			||||||
#include "portmacrocommon.h"
 | 
					#include "portmacrocommon.h"
 | 
				
			||||||
/*-----------------------------------------------------------*/
 | 
					/*-----------------------------------------------------------*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#if ( configTOTAL_MPU_REGIONS == 16 )
 | 
					 | 
				
			||||||
    #error 16 MPU regions are not yet supported for this port.
 | 
					 | 
				
			||||||
#endif
 | 
					 | 
				
			||||||
/*-----------------------------------------------------------*/
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 * @brief Critical section management.
 | 
					 * @brief Critical section management.
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -63,11 +63,6 @@
 | 
				
			||||||
#include "portmacrocommon.h"
 | 
					#include "portmacrocommon.h"
 | 
				
			||||||
/*-----------------------------------------------------------*/
 | 
					/*-----------------------------------------------------------*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#if ( configTOTAL_MPU_REGIONS == 16 )
 | 
					 | 
				
			||||||
    #error 16 MPU regions are not yet supported for this port.
 | 
					 | 
				
			||||||
#endif
 | 
					 | 
				
			||||||
/*-----------------------------------------------------------*/
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 * @brief Critical section management.
 | 
					 * @brief Critical section management.
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue