]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS/Source/portable/IAR/ARM_CM33_NTZ/non_secure/portmacro.h
Do not strip required symbols when LTO is on
[freertos] / FreeRTOS / Source / portable / IAR / ARM_CM33_NTZ / non_secure / portmacro.h
index aacb3875d9c802288afda0431249f4bc372e06c1..3b996caaeeee4d82a6d81959668e8bccbcc7a3c4 100644 (file)
@@ -97,6 +97,7 @@ typedef unsigned long                                                                         UBaseType_t;
        #define portFORCE_INLINE                                                                inline __attribute__(( always_inline ))\r
 #endif\r
 #define portHAS_STACK_OVERFLOW_CHECKING                                                1\r
+#define portDONT_DISCARD                                                                       __root\r
 /*-----------------------------------------------------------*/\r
 \r
 /**\r
@@ -111,8 +112,8 @@ extern uint32_t ulSetInterruptMaskFromISR( void ) /* __attribute__(( naked )) PR
 extern void vClearInterruptMaskFromISR( uint32_t ulMask ) /* __attribute__(( naked )) PRIVILEGED_FUNCTION */;\r
 \r
 #if( configENABLE_TRUSTZONE == 1 )\r
-       extern void vPortAllocateSecureContext( uint32_t ulSecureStackSize );\r
-       extern void vPortFreeSecureContext( uint32_t *pulTCB ) /* PRIVILEGED_FUNCTION */;\r
+       extern void vPortAllocateSecureContext( uint32_t ulSecureStackSize ); /* __attribute__ (( naked )) */\r
+       extern void vPortFreeSecureContext( uint32_t *pulTCB ) /* __attribute__ (( naked )) PRIVILEGED_FUNCTION */;\r
 #endif /* configENABLE_TRUSTZONE */\r
 \r
 #if( configENABLE_MPU == 1 )\r