Skip to content

Commit

Permalink
stm32u5 hal dma_ex function not inlined with GCC 11 or 12
Browse files Browse the repository at this point in the history
refer to
https://review.trustedfirmware.org/c/TF-M/trusted-firmware-m/+/33420

Signed-off-by: F. Ramu <francois.ramu@st.com>
  • Loading branch information
FRASTM committed Nov 12, 2024
1 parent 8134106 commit b69d402
Showing 1 changed file with 14 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -535,10 +535,15 @@ static void DMA_List_BuildNode(DMA_NodeConfTypeDef const *const pNodeConfig,
DMA_NodeTypeDef *const pNode);
static void DMA_List_GetNodeConfig(DMA_NodeConfTypeDef *const pNodeConfig,
DMA_NodeTypeDef const *const pNode);
#if (__GNUC__ == 11) || (__GNUC__ == 12)
static __attribute__((noinline)) uint32_t DMA_List_CheckNodesBaseAddresses(DMA_NodeTypeDef const *const pNode1,
DMA_NodeTypeDef const *const pNode2,
DMA_NodeTypeDef const *const pNode3);
#else
static uint32_t DMA_List_CheckNodesBaseAddresses(DMA_NodeTypeDef const *const pNode1,
DMA_NodeTypeDef const *const pNode2,
DMA_NodeTypeDef const *const pNode3,
DMA_NodeTypeDef const *const pNode4);
DMA_NodeTypeDef const *const pNode3);
#endif
static uint32_t DMA_List_CheckNodesTypes(DMA_NodeTypeDef const *const pNode1,
DMA_NodeTypeDef const *const pNode2,
DMA_NodeTypeDef const *const pNode3,
Expand Down Expand Up @@ -4074,10 +4079,15 @@ static void DMA_List_GetNodeConfig(DMA_NodeConfTypeDef *const pNodeConfig,
* @param pNode4 : Pointer to a DMA_NodeTypeDef structure that contains linked-list node 4 registers configurations.
* @retval Return 0 when nodes addresses are compatible, 1 otherwise.
*/
#if (__GNUC__ == 11) || (__GNUC__ == 12)
static __attribute__((noinline)) uint32_t DMA_List_CheckNodesBaseAddresses(DMA_NodeTypeDef const *const pNode1,
DMA_NodeTypeDef const *const pNode2,
DMA_NodeTypeDef const *const pNode3)
#else
static uint32_t DMA_List_CheckNodesBaseAddresses(DMA_NodeTypeDef const *const pNode1,
DMA_NodeTypeDef const *const pNode2,
DMA_NodeTypeDef const *const pNode3,
DMA_NodeTypeDef const *const pNode4)
DMA_NodeTypeDef const *const pNode3)
#endif
{
uint32_t temp = (((uint32_t)pNode1 | (uint32_t)pNode2 | (uint32_t)pNode3 | (uint32_t)pNode4) & DMA_CLBAR_LBA);
uint32_t ref = 0U;
Expand Down

0 comments on commit b69d402

Please sign in to comment.