]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[pxeprefix] Display PCI vendor and device ID in PXE startup banner
authorMichael Brown <mcb30@ipxe.org>
Wed, 23 Jul 2025 15:11:09 +0000 (16:11 +0100)
committerMichael Brown <mcb30@ipxe.org>
Wed, 23 Jul 2025 15:11:09 +0000 (16:11 +0100)
In the case of a misbehaving PXE stack, it is often useful to know the
PCI vendor and device IDs (e.g. for adding the device to the list of
devices with known broken support for generating interrupts).

The PCI vendor and device ID is already available to the prefix code,
and so can trivially be printed out.  Add this information to the PXE
prefix startup banner.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/arch/x86/prefix/pxeprefix.S

index 2ac1bc76d464f8398d90669b28979ca82248357e..067af99fa6a85f1647184d8cbff9ca48e1f40d4c 100644 (file)
@@ -366,6 +366,14 @@ pci_physical_device:
        movw    $10f, %si
        call    print_message
        call    print_pci_busdevfn
+       movb    $( ' ' ), %al
+       call    print_character
+       movw    pci_vendor, %ax
+       call    print_hex_word
+       movb    $( ':' ), %al
+       call    print_character
+       movw    pci_device, %ax
+       call    print_hex_word
        jmp     99f
        .section ".prefix.data", "aw", @progbits
 10:    .asciz  "PCI "