diff options
author | Michael Brown | 2011-03-10 19:25:05 +0100 |
---|---|---|
committer | Michael Brown | 2011-03-10 19:25:24 +0100 |
commit | 0d277724a9ae66ebce4bc0f5994406b6d5b438cc (patch) | |
tree | 1ebe6cce2c8a9f3df13ec1e430d5efd90f002225 /src/arch/i386/interface/pxe/pxe_undi.c | |
parent | [syslog] Add support for sending console output to a syslog server (diff) | |
download | ipxe-0d277724a9ae66ebce4bc0f5994406b6d5b438cc.tar.gz ipxe-0d277724a9ae66ebce4bc0f5994406b6d5b438cc.tar.xz ipxe-0d277724a9ae66ebce4bc0f5994406b6d5b438cc.zip |
[pxe] Report an IRQ number only if device supports interrupts
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/arch/i386/interface/pxe/pxe_undi.c')
-rw-r--r-- | src/arch/i386/interface/pxe/pxe_undi.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/arch/i386/interface/pxe/pxe_undi.c b/src/arch/i386/interface/pxe/pxe_undi.c index afbc1799..3938207f 100644 --- a/src/arch/i386/interface/pxe/pxe_undi.c +++ b/src/arch/i386/interface/pxe/pxe_undi.c @@ -420,7 +420,8 @@ PXENV_EXIT_t pxenv_undi_get_information ( struct s_PXENV_UNDI_GET_INFORMATION DBG ( "PXENV_UNDI_GET_INFORMATION" ); undi_get_information->BaseIo = dev->desc.ioaddr; - undi_get_information->IntNumber = dev->desc.irq; + undi_get_information->IntNumber = + ( netdev_irq_supported ( pxe_netdev ) ? dev->desc.irq : 0 ); /* Cheat: assume all cards can cope with this */ undi_get_information->MaxTranUnit = ETH_MAX_MTU; undi_get_information->HwType = ntohs ( ll_protocol->ll_proto ); |