fix the indefinite interrupting of the ethernet device.
dev/ns_gige.cc: clear the device interrupts dev/ns_gige_reg.h: Add a new mask --HG-- extra : convert_revision : ce3617315677cbee577ed8893821a8abc5a1a10d
This commit is contained in:
parent
f42b13afc1
commit
675b849b50
2 changed files with 2 additions and 1 deletions
|
@ -299,7 +299,7 @@ EtherDev::read(MemReqPtr &req, uint8_t *data)
|
||||||
|
|
||||||
case ISR:
|
case ISR:
|
||||||
reg = regs.isr;
|
reg = regs.isr;
|
||||||
regs.isr = 0;
|
devIntrClear(ISR_ALL);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case IMR:
|
case IMR:
|
||||||
|
|
|
@ -219,6 +219,7 @@
|
||||||
#define ISR_RXERR 0x00000004
|
#define ISR_RXERR 0x00000004
|
||||||
#define ISR_RXDESC 0x00000002
|
#define ISR_RXDESC 0x00000002
|
||||||
#define ISR_RXOK 0x00000001
|
#define ISR_RXOK 0x00000001
|
||||||
|
#define ISR_ALL 0x7FFFFFFF
|
||||||
|
|
||||||
/* transmit configuration register */
|
/* transmit configuration register */
|
||||||
#define TXCFG_CSI 0x80000000
|
#define TXCFG_CSI 0x80000000
|
||||||
|
|
Loading…
Reference in a new issue