Lines Matching full:if
52 #if ( configMAX_SYSCALL_INTERRUPT_PRIORITY == 0 )
175 /* Check if adding a and b will result in overflow. */
226 #if ( configALLOW_UNPRIVILEGED_CRITICAL_SECTIONS == 1 )
235 #if ( configALLOW_UNPRIVILEGED_CRITICAL_SECTIONS == 1 )
241 #if ( configUSE_MPU_WRAPPERS_V1 == 0 )
255 #endif /* #if ( configUSE_MPU_WRAPPERS_V1 == 0 ) */
257 #if ( configUSE_MPU_WRAPPERS_V1 == 0 )
264 #endif /* #if ( configUSE_MPU_WRAPPERS_V1 == 0 ) */
266 #if ( configUSE_MPU_WRAPPERS_V1 == 0 )
278 #endif /* #if ( configUSE_MPU_WRAPPERS_V1 == 0 ) */
283 * @return pdTRUE if the calling task is privileged, pdFALSE otherwise.
303 #if ( ( configUSE_MPU_WRAPPERS_V1 == 0 ) && ( configENABLE_ACCESS_CONTROL_LIST == 1 ) )
317 #if ( configASSERT_DEFINED == 1 )
334 if( xRunPrivileged == pdTRUE ) in pxPortInitialiseStack()
365 #if ( configUSE_MPU_WRAPPERS_V1 == 0 ) in pxPortInitialiseStack()
375 #endif /* #if ( configUSE_MPU_WRAPPERS_V1 == 0 ) */ in pxPortInitialiseStack()
386 … #if ( ( configUSE_MPU_WRAPPERS_V1 == 1 ) && ( configENFORCE_SYSTEM_CALLS_FROM_KERNEL_ONLY == 1 ) ) in vPortSVCHandler_C()
389 …#endif /* #if ( ( configUSE_MPU_WRAPPERS_V1 == 1 ) && ( configENFORCE_SYSTEM_CALLS_FROM_KERNEL_ONL… in vPortSVCHandler_C()
414 #if ( configUSE_MPU_WRAPPERS_V1 == 1 ) in vPortSVCHandler_C()
415 #if ( configENFORCE_SYSTEM_CALLS_FROM_KERNEL_ONLY == 1 ) in vPortSVCHandler_C()
416 case portSVC_RAISE_PRIVILEGE: /* Only raise the privilege, if the in vPortSVCHandler_C()
420 if( ( ulPC >= ( uint32_t ) __syscalls_flash_start__ ) && in vPortSVCHandler_C()
433 #else /* if ( configENFORCE_SYSTEM_CALLS_FROM_KERNEL_ONLY == 1 ) */ in vPortSVCHandler_C()
443 #endif /* #if( configENFORCE_SYSTEM_CALLS_FROM_KERNEL_ONLY == 1 ) */ in vPortSVCHandler_C()
444 #endif /* #if ( configUSE_MPU_WRAPPERS_V1 == 1 ) */ in vPortSVCHandler_C()
452 #if ( configUSE_MPU_WRAPPERS_V1 == 0 )
464 #if defined( __ARMCC_VERSION ) in vSystemCallEnter()
473 #endif /* #if defined( __ARMCC_VERSION ) */ in vSystemCallEnter()
490 if( ( ulSystemCallLocation >= ( uint32_t ) __syscalls_flash_start__ ) && in vSystemCallEnter()
497 if( ( ulLR & portEXC_RETURN_STACK_FRAME_TYPE_MASK ) == 0UL ) in vSystemCallEnter()
550 /* Record if the hardware used padding to force the stack pointer in vSystemCallEnter()
552 …if( ( pulTaskStack[ portOFFSET_TO_PSR ] & portPSR_STACK_PADDING_MASK ) == portPSR_STACK_PADDING_MA… in vSystemCallEnter()
568 #endif /* #if ( configUSE_MPU_WRAPPERS_V1 == 0 ) */
571 #if ( configUSE_MPU_WRAPPERS_V1 == 0 )
578 #endif /* #if ( configUSE_MPU_WRAPPERS_V1 == 0 ) */
581 #if ( configUSE_MPU_WRAPPERS_V1 == 0 )
591 #if defined( __ARMCC_VERSION ) in vSystemCallExit()
600 #endif /* #if defined( __ARMCC_VERSION ) */ in vSystemCallExit()
614 if( ( ulSystemCallLocation >= ( uint32_t ) __privileged_functions_start__ ) && in vSystemCallExit()
620 if( ( ulLR & portEXC_RETURN_STACK_FRAME_TYPE_MASK ) == 0UL ) in vSystemCallExit()
662 /* If the hardware used padding to force the stack pointer in vSystemCallExit()
665 …if( ( pxMpuSettings->ulTaskFlags & portSTACK_FRAME_HAS_PADDING_FLAG ) == portSTACK_FRAME_HAS_PADDI… in vSystemCallExit()
679 #endif /* #if ( configUSE_MPU_WRAPPERS_V1 == 0 ) */
687 …if( ( xTaskMpuSettings->ulTaskFlags & portTASK_IS_PRIVILEGED_FLAG ) == portTASK_IS_PRIVILEGED_FLAG… in xPortIsTaskPrivileged()
716 #if ( configENABLE_ERRATA_837070_WORKAROUND == 1 ) in xPortStartScheduler()
739 #if ( configCHECK_HANDLER_INSTALLATION == 1 ) in xPortStartScheduler()
754 * can also encounter assertion failures or even system faults here if in xPortStartScheduler()
761 #if ( configASSERT_DEFINED == 1 ) in xPortStartScheduler()
807 if( ulImplementedPrioBits == 8 ) in xPortStartScheduler()
814 * This may cause some confusion in some cases - for example, if in xPortStartScheduler()
820 * have been masked. Instead, if we set configMAX_SYSCALL_INTERRUPT_PRIORITY in xPortStartScheduler()
861 #if ( ( configUSE_MPU_WRAPPERS_V1 == 0 ) && ( configENABLE_ACCESS_CONTROL_LIST == 1 ) ) in xPortStartScheduler()
891 #if ( configALLOW_UNPRIVILEGED_CRITICAL_SECTIONS == 1 ) in vPortEnterCritical()
892 if( portIS_PRIVILEGED() == pdFALSE ) in vPortEnterCritical()
901 * assert() if it is being called from an interrupt context. Only API in vPortEnterCritical()
902 * functions that end in "FromISR" can be used in an interrupt. Only assert if in vPortEnterCritical()
903 * the critical nesting count is 1 to protect against recursive calls if the in vPortEnterCritical()
905 if( uxCriticalNesting == 1 ) in vPortEnterCritical()
921 * assert() if it is being called from an interrupt context. Only API in vPortEnterCritical()
922 * functions that end in "FromISR" can be used in an interrupt. Only assert if in vPortEnterCritical()
923 * the critical nesting count is 1 to protect against recursive calls if the in vPortEnterCritical()
925 if( uxCriticalNesting == 1 ) in vPortEnterCritical()
930 #else /* if ( configALLOW_UNPRIVILEGED_CRITICAL_SECTIONS == 1 ) */ in vPortEnterCritical()
935 * assert() if it is being called from an interrupt context. Only API in vPortEnterCritical()
936 * functions that end in "FromISR" can be used in an interrupt. Only assert if in vPortEnterCritical()
937 * the critical nesting count is 1 to protect against recursive calls if the in vPortEnterCritical()
939 if( uxCriticalNesting == 1 ) in vPortEnterCritical()
943 #endif /* if ( configALLOW_UNPRIVILEGED_CRITICAL_SECTIONS == 1 ) */ in vPortEnterCritical()
949 #if ( configALLOW_UNPRIVILEGED_CRITICAL_SECTIONS == 1 ) in vPortExitCritical()
950 if( portIS_PRIVILEGED() == pdFALSE ) in vPortExitCritical()
958 if( uxCriticalNesting == 0 ) in vPortExitCritical()
973 if( uxCriticalNesting == 0 ) in vPortExitCritical()
978 #else /* if ( configALLOW_UNPRIVILEGED_CRITICAL_SECTIONS == 1 ) */ in vPortExitCritical()
982 if( uxCriticalNesting == 0 ) in vPortExitCritical()
986 #endif /* if ( configALLOW_UNPRIVILEGED_CRITICAL_SECTIONS == 1 ) */ in vPortExitCritical()
1000 if( xTaskIncrementTick() != pdFALSE ) in xPortSysTickHandler()
1049 if( portMPU_TYPE_REG == portEXPECTED_MPU_TYPE_VALUE ) in prvSetupMPU()
1111 if( ulActualSizeInBytes <= ulRegionSize ) in prvGetMPURegionSizeSetting()
1139 if( xRegions == NULL ) in vPortStoreTaskMPUSettings()
1175 if( ulStackDepth > 0 ) in vPortStoreTaskMPUSettings()
1201 if( ( xRegions[ lIndex ] ).ulLengthInBytes > 0UL ) in vPortStoreTaskMPUSettings()
1220 …if( ( ( xRegions[ lIndex ].ulParameters & portMPU_REGION_READ_ONLY ) == portMPU_REGION_READ_ONLY )… in vPortStoreTaskMPUSettings()
1226 … if( ( xRegions[ lIndex ].ulParameters & portMPU_REGION_READ_WRITE ) == portMPU_REGION_READ_WRITE ) in vPortStoreTaskMPUSettings()
1256 …if( ( xTaskMpuSettings->ulTaskFlags & portTASK_IS_PRIVILEGED_FLAG ) == portTASK_IS_PRIVILEGED_FLAG… in xPortIsAuthorizedToAccessBuffer()
1262 …if( portADD_UINT32_WILL_OVERFLOW( ( ( uint32_t ) pvBuffer ), ( ulBufferLength - 1UL ) ) == pdFALSE… in xPortIsAuthorizedToAccessBuffer()
1269 if( portIS_ADDRESS_WITHIN_RANGE( ulBufferStartAddress, in xPortIsAuthorizedToAccessBuffer()
1289 #if ( configASSERT_DEFINED == 1 )
1300 if( ulCurrentInterrupt >= portFIRST_USER_INTERRUPT_NUMBER ) in vPortValidateInterruptPriority()
1305 /* The following assertion will fail if a service routine (ISR) for in vPortValidateInterruptPriority()
1335 * to be pre-emption priority bits. The following assertion will fail if in vPortValidateInterruptPriority()
1336 * this is not the case (if some bits represent a sub-priority). in vPortValidateInterruptPriority()
1338 * If the application only uses CMSIS libraries for interrupt in vPortValidateInterruptPriority()
1350 #if ( ( configUSE_MPU_WRAPPERS_V1 == 0 ) && ( configENABLE_ACCESS_CONTROL_LIST == 1 ) )
1366 #endif /* #if ( ( configUSE_MPU_WRAPPERS_V1 == 0 ) && ( configENABLE_ACCESS_CONTROL_LIST == 1 ) ) */
1369 #if ( ( configUSE_MPU_WRAPPERS_V1 == 0 ) && ( configENABLE_ACCESS_CONTROL_LIST == 1 ) )
1385 #endif /* #if ( ( configUSE_MPU_WRAPPERS_V1 == 0 ) && ( configENABLE_ACCESS_CONTROL_LIST == 1 ) ) */
1388 #if ( configUSE_MPU_WRAPPERS_V1 == 0 )
1390 #if ( configENABLE_ACCESS_CONTROL_LIST == 1 )
1398 if( xSchedulerRunning == pdFALSE ) in xPortIsAuthorizedToAccessKernelObject()
1413 …if( ( xTaskMpuSettings->ulTaskFlags & portTASK_IS_PRIVILEGED_FLAG ) == portTASK_IS_PRIVILEGED_FLAG… in xPortIsAuthorizedToAccessKernelObject()
1419 …if( ( xTaskMpuSettings->ulAccessControlList[ ulAccessControlListEntryIndex ] & ( 1U << ulAccessCon… in xPortIsAuthorizedToAccessKernelObject()
1429 #else /* #if ( configENABLE_ACCESS_CONTROL_LIST == 1 ) */
1435 /* If Access Control List feature is not used, all the tasks have in xPortIsAuthorizedToAccessKernelObject()
1440 #endif /* #if ( configENABLE_ACCESS_CONTROL_LIST == 1 ) */
1442 #endif /* #if ( configUSE_MPU_WRAPPERS_V1 == 0 ) */