Pārlūkot izejas kodu

[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 gadus atpakaļ
vecāks
revīzija
0d277724a9
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  1. 2
    1
      src/arch/i386/interface/pxe/pxe_undi.c

+ 2
- 1
src/arch/i386/interface/pxe/pxe_undi.c Parādīt failu

@@ -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 );

Notiek ielāde…
Atcelt
Saglabāt