瀏覽代碼

[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 年之前
父節點
當前提交
0d277724a9
共有 1 個檔案被更改,包括 2 行新增1 行删除
  1. 2
    1
      src/arch/i386/interface/pxe/pxe_undi.c

+ 2
- 1
src/arch/i386/interface/pxe/pxe_undi.c 查看文件

420
 	DBG ( "PXENV_UNDI_GET_INFORMATION" );
420
 	DBG ( "PXENV_UNDI_GET_INFORMATION" );
421
 
421
 
422
 	undi_get_information->BaseIo = dev->desc.ioaddr;
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
 	/* Cheat: assume all cards can cope with this */
425
 	/* Cheat: assume all cards can cope with this */
425
 	undi_get_information->MaxTranUnit = ETH_MAX_MTU;
426
 	undi_get_information->MaxTranUnit = ETH_MAX_MTU;
426
 	undi_get_information->HwType = ntohs ( ll_protocol->ll_proto );
427
 	undi_get_information->HwType = ntohs ( ll_protocol->ll_proto );

Loading…
取消
儲存