temporarily disabled interrupts to make debug printouts readable

This commit is contained in:
Markus Fröschle
2014-09-06 18:45:21 +00:00
parent f3766b9b63
commit 3cfcd9e7c3

View File

@@ -39,7 +39,7 @@
#error "unknown machine!"
#endif /* MACHINE_FIREBEE */
// #define DBG_DMA
#define DBG_DMA
#ifdef DBG_DMA
#define dbg(format, arg...) do { xprintf("DEBUG: %s(): " format, __FUNCTION__, ##arg); } while (0)
#else
@@ -556,7 +556,9 @@ void dma_free_channel(int requestor)
int dma_interrupt_handler(void *arg1, void *arg2)
{
int i, interrupts;
uint32_t ipl;
ipl = set_ipl(7); /* do not disturb */
/*
* Determine which interrupt(s) triggered by AND'ing the
* pending interrupts with those that aren't masked.
@@ -566,7 +568,7 @@ int dma_interrupt_handler(void *arg1, void *arg2)
/* Make sure we are here for a reason */
if (interrupts == 0)
{
dbg("not DMA interrupt! Spurious?\r\n", );
dbg("not DMA interrupt! Spurious?\r\n");
return 0;
}
@@ -586,6 +588,8 @@ int dma_interrupt_handler(void *arg1, void *arg2)
}
}
set_ipl(ipl);
return 1; /* handled */
}
/********************************************************************/