rem: LWIP_DEBUGF(NETIF_DEBUG,("__bba_link_txsub0(error link state)\n"));
add: LWIP_ERROR(("__bba_link_txsub0(error link state)\n"));
context: static u32 __bba_link_txsub0(){	u32 level,len;	struct bba_priv *priv = (struct bba_priv*)gc_netif->state;	_CPU_ISR_Disable(level);	if(EXI_Lock(EXI_CHANNEL_0,EXI_DEVICE_2,__bba_link_txsub0)==0) {		LWIP_DEBUGF(NETIF_DEBUG,("__bba_link_txsub0(exi allready locked)\n"));		_CPU_ISR_Restore(level);		return ERR_OK;	}	_CPU_ISR_Restore(level);	if(!__linkstate()) {		LWIP_DEBUGF(NETIF_DEBUG,("__bba_link_txsub0(error link state)\n"));		__bba_tx_wake(priv);		EXI_Unlock(EXI_CHANNEL_0);		return ERR_ABRT;	}	bba_out12(BBA_TXFIFOCNT,cur_snd_len);	LWIP_DEBUGF(NETIF_DEBUG,("__bba_link_txsub0(%d,%p)\n",cur_snd_len,LWP_GetSelf()));	len = cur_snd_len;	if(len<BBA_MINPKTSIZE) len = BBA_MINPKTSIZE;	cur_snd_dmalen = len&~0x1f;	cur_snd_immlen = len&0x1f;	DCStoreRange(cur_snd_buffer,cur_snd_dmalen);	bba_select();	bba_outsregister(BBA_WRTXFIFOD);	bba_outsdmadata(cur_snd_buffer,cur_snd_dmalen,__bba_link_txsub1);	return ERR_OK;}