mirror of
				https://github.com/FreeRTOS/FreeRTOS-Kernel.git
				synced 2025-11-04 02:59:01 +01:00 
			
		
		
		
	Add a check for configENABLE_MVE to M23, M33 ports (#968)
Add a check for configENABLE_MVE to M23, M33 ports configENABLE_MVE is only applicable to Cortex-M55 and Cortex-M85 ports. It must not be defined to 1 for other ARMv8_m ports. Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com>
This commit is contained in:
		
							parent
							
								
									5a2237a1e2
								
							
						
					
					
						commit
						04cb022e44
					
				@ -60,6 +60,12 @@
 | 
			
		||||
#if ( configTOTAL_MPU_REGIONS == 16 )
 | 
			
		||||
    #error 16 MPU regions are not yet supported for this port.
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#ifndef configENABLE_MVE
 | 
			
		||||
    #define configENABLE_MVE    0
 | 
			
		||||
#elif( configENABLE_MVE != 0 )
 | 
			
		||||
    #error configENABLE_MVE must be left undefined, or defined to 0 for the Cortex-M23.
 | 
			
		||||
#endif
 | 
			
		||||
/*-----------------------------------------------------------*/
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 | 
			
		||||
@ -60,6 +60,12 @@
 | 
			
		||||
#if ( configTOTAL_MPU_REGIONS == 16 )
 | 
			
		||||
    #error 16 MPU regions are not yet supported for this port.
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#ifndef configENABLE_MVE
 | 
			
		||||
    #define configENABLE_MVE    0
 | 
			
		||||
#elif( configENABLE_MVE != 0 )
 | 
			
		||||
    #error configENABLE_MVE must be left undefined, or defined to 0 for the Cortex-M23.
 | 
			
		||||
#endif
 | 
			
		||||
/*-----------------------------------------------------------*/
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 | 
			
		||||
@ -57,6 +57,13 @@
 | 
			
		||||
#include "portmacrocommon.h"
 | 
			
		||||
/*-----------------------------------------------------------*/
 | 
			
		||||
 | 
			
		||||
#ifndef configENABLE_MVE
 | 
			
		||||
    #define configENABLE_MVE    0
 | 
			
		||||
#elif( configENABLE_MVE != 0 )
 | 
			
		||||
    #error configENABLE_MVE must be left undefined, or defined to 0 for the Cortex-M33.
 | 
			
		||||
#endif
 | 
			
		||||
/*-----------------------------------------------------------*/
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * @brief Critical section management.
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
@ -57,6 +57,13 @@
 | 
			
		||||
#include "portmacrocommon.h"
 | 
			
		||||
/*-----------------------------------------------------------*/
 | 
			
		||||
 | 
			
		||||
#ifndef configENABLE_MVE
 | 
			
		||||
    #define configENABLE_MVE    0
 | 
			
		||||
#elif( configENABLE_MVE != 0 )
 | 
			
		||||
    #error configENABLE_MVE must be left undefined, or defined to 0 for the Cortex-M33.
 | 
			
		||||
#endif
 | 
			
		||||
/*-----------------------------------------------------------*/
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * @brief Critical section management.
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
@ -57,6 +57,13 @@
 | 
			
		||||
#include "portmacrocommon.h"
 | 
			
		||||
/*-----------------------------------------------------------*/
 | 
			
		||||
 | 
			
		||||
#ifndef configENABLE_MVE
 | 
			
		||||
    #define configENABLE_MVE    0
 | 
			
		||||
#elif( configENABLE_MVE != 0 )
 | 
			
		||||
    #error configENABLE_MVE must be left undefined, or defined to 0 for the Cortex-M35.
 | 
			
		||||
#endif
 | 
			
		||||
/*-----------------------------------------------------------*/
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * @brief Critical section management.
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
@ -60,6 +60,12 @@
 | 
			
		||||
#if ( configTOTAL_MPU_REGIONS == 16 )
 | 
			
		||||
    #error 16 MPU regions are not yet supported for this port.
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#ifndef configENABLE_MVE
 | 
			
		||||
    #define configENABLE_MVE    0
 | 
			
		||||
#elif( configENABLE_MVE != 0 )
 | 
			
		||||
    #error configENABLE_MVE must be left undefined, or defined to 0 for the Cortex-M23.
 | 
			
		||||
#endif
 | 
			
		||||
/*-----------------------------------------------------------*/
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 | 
			
		||||
@ -60,6 +60,12 @@
 | 
			
		||||
#if ( configTOTAL_MPU_REGIONS == 16 )
 | 
			
		||||
    #error 16 MPU regions are not yet supported for this port.
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#ifndef configENABLE_MVE
 | 
			
		||||
    #define configENABLE_MVE    0
 | 
			
		||||
#elif( configENABLE_MVE != 0 )
 | 
			
		||||
    #error configENABLE_MVE must be left undefined, or defined to 0 for the Cortex-M23.
 | 
			
		||||
#endif
 | 
			
		||||
/*-----------------------------------------------------------*/
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 | 
			
		||||
@ -62,6 +62,13 @@
 | 
			
		||||
#include "portmacrocommon.h"
 | 
			
		||||
/*-----------------------------------------------------------*/
 | 
			
		||||
 | 
			
		||||
#ifndef configENABLE_MVE
 | 
			
		||||
    #define configENABLE_MVE    0
 | 
			
		||||
#elif( configENABLE_MVE != 0 )
 | 
			
		||||
    #error configENABLE_MVE must be left undefined, or defined to 0 for the Cortex-M33.
 | 
			
		||||
#endif
 | 
			
		||||
/*-----------------------------------------------------------*/
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * @brief Critical section management.
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
@ -60,6 +60,13 @@
 | 
			
		||||
#if ( configTOTAL_MPU_REGIONS == 16 )
 | 
			
		||||
    #error 16 MPU regions are not yet supported for this port.
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#ifndef configENABLE_MVE
 | 
			
		||||
    #define configENABLE_MVE    0
 | 
			
		||||
#elif( configENABLE_MVE != 0 )
 | 
			
		||||
    #error configENABLE_MVE must be left undefined, or defined to 0 for the Cortex-M33.
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
/*-----------------------------------------------------------*/
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 | 
			
		||||
@ -60,6 +60,12 @@
 | 
			
		||||
#if ( configTOTAL_MPU_REGIONS == 16 )
 | 
			
		||||
    #error 16 MPU regions are not yet supported for this port.
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#ifndef configENABLE_MVE
 | 
			
		||||
    #define configENABLE_MVE    0
 | 
			
		||||
#elif( configENABLE_MVE != 0 )
 | 
			
		||||
    #error configENABLE_MVE must be left undefined, or defined to 0 for the Cortex-M35.
 | 
			
		||||
#endif
 | 
			
		||||
/*-----------------------------------------------------------*/
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 | 
			
		||||
@ -60,6 +60,12 @@
 | 
			
		||||
#if ( configTOTAL_MPU_REGIONS == 16 )
 | 
			
		||||
    #error 16 MPU regions are not yet supported for this port.
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#ifndef configENABLE_MVE
 | 
			
		||||
    #define configENABLE_MVE    0
 | 
			
		||||
#elif( configENABLE_MVE != 0 )
 | 
			
		||||
    #error configENABLE_MVE must be left undefined, or defined to 0 for the Cortex-M23.
 | 
			
		||||
#endif
 | 
			
		||||
/*-----------------------------------------------------------*/
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 | 
			
		||||
@ -60,6 +60,12 @@
 | 
			
		||||
#if ( configTOTAL_MPU_REGIONS == 16 )
 | 
			
		||||
    #error 16 MPU regions are not yet supported for this port.
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#ifndef configENABLE_MVE
 | 
			
		||||
    #define configENABLE_MVE    0
 | 
			
		||||
#elif( configENABLE_MVE != 0 )
 | 
			
		||||
    #error configENABLE_MVE must be left undefined, or defined to 0 for the Cortex-M23.
 | 
			
		||||
#endif
 | 
			
		||||
/*-----------------------------------------------------------*/
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 | 
			
		||||
@ -57,6 +57,13 @@
 | 
			
		||||
#include "portmacrocommon.h"
 | 
			
		||||
/*-----------------------------------------------------------*/
 | 
			
		||||
 | 
			
		||||
#ifndef configENABLE_MVE
 | 
			
		||||
    #define configENABLE_MVE    0
 | 
			
		||||
#elif( configENABLE_MVE != 0 )
 | 
			
		||||
    #error configENABLE_MVE must be left undefined, or defined to 0 for the Cortex-M33.
 | 
			
		||||
#endif
 | 
			
		||||
/*-----------------------------------------------------------*/
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * @brief Critical section management.
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
@ -57,6 +57,13 @@
 | 
			
		||||
#include "portmacrocommon.h"
 | 
			
		||||
/*-----------------------------------------------------------*/
 | 
			
		||||
 | 
			
		||||
#ifndef configENABLE_MVE
 | 
			
		||||
    #define configENABLE_MVE    0
 | 
			
		||||
#elif( configENABLE_MVE != 0 )
 | 
			
		||||
    #error configENABLE_MVE must be left undefined, or defined to 0 for the Cortex-M33.
 | 
			
		||||
#endif
 | 
			
		||||
/*-----------------------------------------------------------*/
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * @brief Critical section management.
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
@ -57,6 +57,13 @@
 | 
			
		||||
#include "portmacrocommon.h"
 | 
			
		||||
/*-----------------------------------------------------------*/
 | 
			
		||||
 | 
			
		||||
#ifndef configENABLE_MVE
 | 
			
		||||
    #define configENABLE_MVE    0
 | 
			
		||||
#elif( configENABLE_MVE != 0 )
 | 
			
		||||
    #error configENABLE_MVE must be left undefined, or defined to 0 for the Cortex-M35.
 | 
			
		||||
#endif
 | 
			
		||||
/*-----------------------------------------------------------*/
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * @brief Critical section management.
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
@ -57,6 +57,13 @@
 | 
			
		||||
#include "portmacrocommon.h"
 | 
			
		||||
/*-----------------------------------------------------------*/
 | 
			
		||||
 | 
			
		||||
#ifndef configENABLE_MVE
 | 
			
		||||
    #define configENABLE_MVE    0
 | 
			
		||||
#elif( configENABLE_MVE != 0 )
 | 
			
		||||
    #error configENABLE_MVE must be left undefined, or defined to 0 for the Cortex-M35.
 | 
			
		||||
#endif
 | 
			
		||||
/*-----------------------------------------------------------*/
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * @brief Critical section management.
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
@ -60,6 +60,12 @@
 | 
			
		||||
#if ( configTOTAL_MPU_REGIONS == 16 )
 | 
			
		||||
    #error 16 MPU regions are not yet supported for this port.
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#ifndef configENABLE_MVE
 | 
			
		||||
    #define configENABLE_MVE    0
 | 
			
		||||
#elif( configENABLE_MVE != 0 )
 | 
			
		||||
    #error configENABLE_MVE must be left undefined, or defined to 0 for the Cortex-M23.
 | 
			
		||||
#endif
 | 
			
		||||
/*-----------------------------------------------------------*/
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 | 
			
		||||
@ -60,6 +60,12 @@
 | 
			
		||||
#if ( configTOTAL_MPU_REGIONS == 16 )
 | 
			
		||||
    #error 16 MPU regions are not yet supported for this port.
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#ifndef configENABLE_MVE
 | 
			
		||||
    #define configENABLE_MVE    0
 | 
			
		||||
#elif( configENABLE_MVE != 0 )
 | 
			
		||||
    #error configENABLE_MVE must be left undefined, or defined to 0 for the Cortex-M23.
 | 
			
		||||
#endif
 | 
			
		||||
/*-----------------------------------------------------------*/
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 | 
			
		||||
@ -62,6 +62,13 @@
 | 
			
		||||
#include "portmacrocommon.h"
 | 
			
		||||
/*-----------------------------------------------------------*/
 | 
			
		||||
 | 
			
		||||
#ifndef configENABLE_MVE
 | 
			
		||||
    #define configENABLE_MVE    0
 | 
			
		||||
#elif( configENABLE_MVE != 0 )
 | 
			
		||||
    #error configENABLE_MVE must be left undefined, or defined to 0 for the Cortex-M33.
 | 
			
		||||
#endif
 | 
			
		||||
/*-----------------------------------------------------------*/
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * @brief Critical section management.
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
@ -60,6 +60,13 @@
 | 
			
		||||
#if ( configTOTAL_MPU_REGIONS == 16 )
 | 
			
		||||
    #error 16 MPU regions are not yet supported for this port.
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#ifndef configENABLE_MVE
 | 
			
		||||
    #define configENABLE_MVE    0
 | 
			
		||||
#elif( configENABLE_MVE != 0 )
 | 
			
		||||
    #error configENABLE_MVE must be left undefined, or defined to 0 for the Cortex-M33.
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
/*-----------------------------------------------------------*/
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 | 
			
		||||
@ -60,6 +60,12 @@
 | 
			
		||||
#if ( configTOTAL_MPU_REGIONS == 16 )
 | 
			
		||||
    #error 16 MPU regions are not yet supported for this port.
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#ifndef configENABLE_MVE
 | 
			
		||||
    #define configENABLE_MVE    0
 | 
			
		||||
#elif( configENABLE_MVE != 0 )
 | 
			
		||||
    #error configENABLE_MVE must be left undefined, or defined to 0 for the Cortex-M35.
 | 
			
		||||
#endif
 | 
			
		||||
/*-----------------------------------------------------------*/
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 | 
			
		||||
@ -60,6 +60,12 @@
 | 
			
		||||
#if ( configTOTAL_MPU_REGIONS == 16 )
 | 
			
		||||
    #error 16 MPU regions are not yet supported for this port.
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#ifndef configENABLE_MVE
 | 
			
		||||
    #define configENABLE_MVE    0
 | 
			
		||||
#elif( configENABLE_MVE != 0 )
 | 
			
		||||
    #error configENABLE_MVE must be left undefined, or defined to 0 for the Cortex-M35.
 | 
			
		||||
#endif
 | 
			
		||||
/*-----------------------------------------------------------*/
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user