]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[pxeprefix] Work around missing type values from PXENV_UNDI_GET_NIC_TYPE
authorMichael Brown <mcb30@ipxe.org>
Wed, 26 Mar 2025 11:35:48 +0000 (11:35 +0000)
committerMichael Brown <mcb30@ipxe.org>
Wed, 26 Mar 2025 12:02:27 +0000 (12:02 +0000)
commite8365f7a51e8ad9fc80841f42261fd708831b0d6
tree36a620ccb20f3e3f481d40d354fcb7a2e39a88a1
parent32a9408217810498deeeae3d2564ab15468c9c39
[pxeprefix] Work around missing type values from PXENV_UNDI_GET_NIC_TYPE

The implementation of PXENV_UNDI_GET_NIC_TYPE in some PXE ROMs
(observed with an Intel X710 ROM in a Dell PowerEdge R6515) will fail
to write the NicType byte, leaving it uninitialised.

Prepopulate the NicType byte with a highly unlikely value as a
sentinel to allow us to detect this, and assume that any such devices
are overwhelmingly likely to be PCI devices.

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