Browse Source

[pxe] Report an IRQ number only if device supports interrupts

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 14 years ago
parent
commit
0d277724a9
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      src/arch/i386/interface/pxe/pxe_undi.c

+ 2
- 1
src/arch/i386/interface/pxe/pxe_undi.c View File

@@ -420,7 +420,8 @@ PXENV_EXIT_t pxenv_undi_get_information ( struct s_PXENV_UNDI_GET_INFORMATION
420 420
 	DBG ( "PXENV_UNDI_GET_INFORMATION" );
421 421
 
422 422
 	undi_get_information->BaseIo = dev->desc.ioaddr;
423
-	undi_get_information->IntNumber = dev->desc.irq;
423
+	undi_get_information->IntNumber =
424
+		( netdev_irq_supported ( pxe_netdev ) ? dev->desc.irq : 0 );
424 425
 	/* Cheat: assume all cards can cope with this */
425 426
 	undi_get_information->MaxTranUnit = ETH_MAX_MTU;
426 427
 	undi_get_information->HwType = ntohs ( ll_protocol->ll_proto );

Loading…
Cancel
Save