mirror of
				https://github.com/FreeRTOS/FreeRTOS-Kernel.git
				synced 2025-11-04 02:59:01 +01:00 
			
		
		
		
	Define security extension configs before portable.h (#1294)
Define configENABLE_PAC and configENABLE_BTI before including portable.h to prevent "used before definition" warnings when these macros are not set in FreeRTOSConfig.h. Fixes: https://github.com/FreeRTOS/FreeRTOS-Kernel/issues/1293 Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com>
This commit is contained in:
		
							parent
							
								
									f5e6151b14
								
							
						
					
					
						commit
						684b34ca8d
					
				@ -101,6 +101,16 @@
 | 
				
			|||||||
    #define configASSERT_DEFINED    1
 | 
					    #define configASSERT_DEFINED    1
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					/* Set configENABLE_PAC and/or configENABLE_BTI to 1 to enable PAC and/or BTI
 | 
				
			||||||
 | 
					 * support and 0 to disable them. These are currently used in ARMv8.1-M ports. */
 | 
				
			||||||
 | 
					#ifndef configENABLE_PAC
 | 
				
			||||||
 | 
					    #define configENABLE_PAC    0
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#ifndef configENABLE_BTI
 | 
				
			||||||
 | 
					    #define configENABLE_BTI    0
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/* Basic FreeRTOS definitions. */
 | 
					/* Basic FreeRTOS definitions. */
 | 
				
			||||||
#include "projdefs.h"
 | 
					#include "projdefs.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -3040,16 +3050,6 @@
 | 
				
			|||||||
    #define configCONTROL_INFINITE_LOOP()
 | 
					    #define configCONTROL_INFINITE_LOOP()
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/* Set configENABLE_PAC and/or configENABLE_BTI to 1 to enable PAC and/or BTI
 | 
					 | 
				
			||||||
 * support and 0 to disable them. These are currently used in ARMv8.1-M ports. */
 | 
					 | 
				
			||||||
#ifndef configENABLE_PAC
 | 
					 | 
				
			||||||
    #define configENABLE_PAC    0
 | 
					 | 
				
			||||||
#endif
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
#ifndef configENABLE_BTI
 | 
					 | 
				
			||||||
    #define configENABLE_BTI    0
 | 
					 | 
				
			||||||
#endif
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
/* Sometimes the FreeRTOSConfig.h settings only allow a task to be created using
 | 
					/* Sometimes the FreeRTOSConfig.h settings only allow a task to be created using
 | 
				
			||||||
 * dynamically allocated RAM, in which case when any task is deleted it is known
 | 
					 * dynamically allocated RAM, in which case when any task is deleted it is known
 | 
				
			||||||
 * that both the task's stack and TCB need to be freed.  Sometimes the
 | 
					 * that both the task's stack and TCB need to be freed.  Sometimes the
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user