/* Reset the FEC if we get into an unrecoverable state.  */
static void prvResetFEC(portBASE_TYPE xCalledFromISR)
/* Reset the FEC if we get into an unrecoverable state.  */
static void prvResetFEC(portBASE_TYPE xCalledFromISR)
{
portBASE_TYPE x;
	if( xCalledFromISR == pdFALSE )
	{
		taskENTER_CRITICAL();
	}
	{
		prvInitialiseFECBuffers();
		MCF_FEC_ECR = MCF_FEC_ECR_RESET;
		for( x = 0; x < 10; x++ )
		{
			asm( "NOP" );
		}
		MCF_FEC_ECR = MCF_FEC_ECR_ETHER_EN;
		MCF_FEC_RDAR = MCF_FEC_RDAR_R_DES_ACTIVE;
	}
	if( xCalledFromISR == pdFALSE )
	{
		taskEXIT_CRITICAL();
	}
}