Freertos stuck in vTaskDelay with Nios II port

I am using Nios II with freerots. I am using Enhanced mode interrupt API of Nios. I have changed port.c file accordingly. Freertos is working correctly while not using vTaskDelay() function. But if I call vTaskDelay then it will never return.

Freertos stuck in vTaskDelay with Nios II port

Do you just end up in the Idle task and stay there? If so, the first thing to check is that the tick interrupt is executing as you expect. If the tick is not incrementing the time then the delay period will never expire.