diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-03-15 21:47:00 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-03-15 21:47:00 +0000 |
commit | e7fa349439a23696eac35a4a74c27f1357ec6a97 (patch) | |
tree | 551fe8e50e8edf4aef49126fdbf4635a2a826b37 | |
parent | 2627bd07ede364894b945ed8036eb00e20d96976 (diff) | |
download | nuttx-e7fa349439a23696eac35a4a74c27f1357ec6a97.tar.gz nuttx-e7fa349439a23696eac35a4a74c27f1357ec6a97.tar.bz2 nuttx-e7fa349439a23696eac35a4a74c27f1357ec6a97.zip |
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
-rw-r--r-- | nuttx/arch/z80/src/ez80/ez80_emac.c | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/nuttx/arch/z80/src/ez80/ez80_emac.c b/nuttx/arch/z80/src/ez80/ez80_emac.c index 2563036cb..817668595 100644 --- a/nuttx/arch/z80/src/ez80/ez80_emac.c +++ b/nuttx/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) */ |