RC 1 of the Microsemi demos.

This commit is contained in:
Richard Barry 2011-04-29 11:57:38 +00:00
parent eadd0048c4
commit 3463753afc
4 changed files with 435 additions and 6 deletions

View file

@ -1448,7 +1448,7 @@ void MSS_MAC_FreeTxBuffers( void )
/* Check the buffers have not already been freed in the first of the
two Tx interrupts - which could potentially happen if the second Tx completed
during the interrupt for the first Tx. */
if( g_mss_mac.tx_descriptors[ 0 ].buffer_1 != NULL )
if( g_mss_mac.tx_descriptors[ 0 ].buffer_1 != ( uint32_t ) NULL )
{
if( ( ( (g_mss_mac.tx_descriptors[ 0 ].descriptor_0) & TDES0_OWN) == 0 ) && ( ( (g_mss_mac.tx_descriptors[ 1 ].descriptor_0) & TDES0_OWN) == 0 ) )
{
@ -1456,7 +1456,7 @@ void MSS_MAC_FreeTxBuffers( void )
MAC_release_buffer( ( unsigned char * ) g_mss_mac.tx_descriptors[ 0 ].buffer_1 );
/* Just to mark the fact that the buffer has already been released. */
g_mss_mac.tx_descriptors[ 0 ].buffer_1 == NULL;
g_mss_mac.tx_descriptors[ 0 ].buffer_1 = ( uint32_t ) NULL;
}
}
}