From 2db7a386d495e1f610f4ae62688182f8c440ad5c Mon Sep 17 00:00:00 2001 From: patacongo Date: Sun, 15 Mar 2009 21:47:00 +0000 Subject: [PATCH] use llvdbg because vdbg can cause suspension git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1616 42af7a65-404d-4744-a932-0658087f49c3 --- arch/z80/src/ez80/ez80_emac.c | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/arch/z80/src/ez80/ez80_emac.c b/arch/z80/src/ez80/ez80_emac.c index 2563036cbc..8176685952 100644 --- a/arch/z80/src/ez80/ez80_emac.c +++ b/arch/z80/src/ez80/ez80_emac.c @@ -942,9 +942,13 @@ static int ez80emac_transmit(struct ez80emac_driver_s *priv) irqstate_t flags; ubyte regval; - nvdbg("ENTRY: txnext=%p {%06x, %u, %04x} trp=%02x%02x\n", - priv->txnext, priv->txnext->np, priv->txnext->pktsize, priv->txnext->stat, - inp(EZ80_EMAC_TRP_H), inp(EZ80_EMAC_TRP_L)); + /* Careful: This function can be called from outside of the interrupt + * handler and, therefore, may be suspended when debug output is generated! + */ + + nllvdbg("ENTRY: txnext=%p {%06x, %u, %04x} trp=%02x%02x\n", + priv->txnext, priv->txnext->np, priv->txnext->pktsize, priv->txnext->stat, + inp(EZ80_EMAC_TRP_H), inp(EZ80_EMAC_TRP_L)); /* Increment statistics */ @@ -1021,10 +1025,10 @@ static int ez80emac_transmit(struct ez80emac_driver_s *priv) outp(EZ80_EMAC_PTMR, EMAC_PTMR); irqrestore(flags); - nvdbg("EXIT: txdesc=%p {%06x, %u, %04x}\n", - txdesc, txdesc->np, txdesc->pktsize, txdesc->stat); - nvdbg(" txnext=%p {%06x, %u, %04x} trp=%02x%02x\n", - txnext, txnext->np, txnext->pktsize, txnext->stat, + nllvdbg("EXIT: txdesc=%p {%06x, %u, %04x}\n", + txdesc, txdesc->np, txdesc->pktsize, txdesc->stat); + nllvdbg(" txnext=%p {%06x, %u, %04x} trp=%02x%02x\n", + txnext, txnext->np, txnext->pktsize, txnext->stat, inp(EZ80_EMAC_TRP_H), inp(EZ80_EMAC_TRP_L)); /* Setup the TX timeout watchdog (perhaps restarting the timer) */