Performance Issues using newer FreeRTOS V10.4.6 ,10.5.0 with TMS570LC4357

Sorry I should have been more clear in my response. I think the cause is changing from macro to function call. The changes you are making seems right to me - you’ll need to follow up with the vendor to get these changes in their port.