2010-11-30 Joel Sherrill <joel.sherrilL@OARcorp.com>

* mpc55xx/edma/edma.c: Use rtems_chain_first() and do not directly
	access the structure.
This commit is contained in:
Joel Sherrill
2010-11-30 17:13:28 +00:00
parent 0a0e7a9a41
commit 95b18d0118
2 changed files with 6 additions and 1 deletions

View File

@@ -1,3 +1,8 @@
2010-11-30 Joel Sherrill <joel.sherrilL@OARcorp.com>
* mpc55xx/edma/edma.c: Use rtems_chain_first() and do not directly
access the structure.
2010-11-12 Sebastian Huber <sebastian.huber@embedded-brains.de> 2010-11-12 Sebastian Huber <sebastian.huber@embedded-brains.de>
* mpc55xx/include/irq.h: Include missing <bspopts.h>. Format. * mpc55xx/include/irq.h: Include missing <bspopts.h>. Format.

View File

@@ -69,7 +69,7 @@ static void mpc55xx_edma_interrupt_handler( void *arg)
static void mpc55xx_edma_interrupt_error_handler( void *arg) static void mpc55xx_edma_interrupt_error_handler( void *arg)
{ {
rtems_chain_control *chain = &mpc55xx_edma_channel_chain; rtems_chain_control *chain = &mpc55xx_edma_channel_chain;
rtems_chain_node *node = chain->first; rtems_chain_node *node = rtems_chain_first( chain );
unsigned i = 0; unsigned i = 0;
uint64_t error_status = EDMA.ESR.R; uint64_t error_status = EDMA.ESR.R;
uint64_t error_channels = ((uint64_t) EDMA.ERH.R << 32) | EDMA.ERL.R; uint64_t error_channels = ((uint64_t) EDMA.ERH.R << 32) | EDMA.ERL.R;