minor changes to support the new semaphore interface
This commit is contained in:
parent
a179ded21b
commit
6d08dbcf72
1 changed files with 5 additions and 5 deletions
|
@ -540,7 +540,7 @@ __inline void mmnif_lock_rx_hdr(int dest_ip)
|
|||
#else
|
||||
if(disable_locking) return;
|
||||
mm_rx_buffer_t* hdr = (char*)mpb_start_address + ( dest_ip -1 ) * mpb_size;
|
||||
sem_wait(&hdr->lock);
|
||||
sem_wait(&hdr->lock, 0);
|
||||
#endif
|
||||
}
|
||||
/* mmnif_unlock_rx_hdr(): unlock the header
|
||||
|
@ -879,7 +879,7 @@ err_t mmnif_init(struct netif* netif)
|
|||
*/
|
||||
|
||||
sem_init(&mmnif->com_poll,1);
|
||||
sem_wait(&mmnif->com_poll);
|
||||
sem_wait(&mmnif->com_poll,0);
|
||||
|
||||
/* inform via interrupt should be the dafault
|
||||
*/
|
||||
|
@ -1113,7 +1113,7 @@ static int mmnif_wait(struct netif* netif, uint32_t poll, int budget)
|
|||
}
|
||||
else
|
||||
{
|
||||
mailbox_ptr_fetch(&(mmnif->mbox), (void**) &p);
|
||||
mailbox_ptr_fetch(&(mmnif->mbox), (void**) &p,0);
|
||||
}
|
||||
|
||||
/* if there is data, pass it up to the lwip
|
||||
|
@ -1174,7 +1174,7 @@ int mmnif_poll(void* e)
|
|||
|
||||
if (!no_irq)
|
||||
{
|
||||
sem_wait(&mmnif->com_poll);
|
||||
sem_wait(&mmnif->com_poll,0);
|
||||
}
|
||||
|
||||
/*run while driver is up*/
|
||||
|
@ -1196,7 +1196,7 @@ int mmnif_poll(void* e)
|
|||
#ifdef DEBUG_MMNIF
|
||||
DEBUGPRINTF("mmnif_poll(): heuristical interrupts enabled\n");
|
||||
#endif
|
||||
sem_wait(&mmnif->com_poll);
|
||||
sem_wait(&mmnif->com_poll,0);
|
||||
mmnif->stats.pll_empty = 1;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue