]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[pxeprefix] Ensure that UNDI IRQ is disabled before starting iPXE
authorMichael Brown <mcb30@ipxe.org>
Wed, 26 Mar 2025 14:49:08 +0000 (14:49 +0000)
committerMichael Brown <mcb30@ipxe.org>
Wed, 26 Mar 2025 14:56:13 +0000 (14:56 +0000)
commit4134280bcd93be43143f11ee41fcdadad90c5672
tree30d984047f48e992e6888e97f71333c7ce91d8e6
parente8365f7a51e8ad9fc80841f42261fd708831b0d6
[pxeprefix] Ensure that UNDI IRQ is disabled before starting iPXE

When using the undionly.kkpxe binary (which is never recommended), the
UNDI interrupt may still be enabled when iPXE starts up.  If the PXE
base code interrupt handler is not well-behaved, this can result in
undefined behaviour when interrupts are first enabled (e.g. for
entropy gathering, or for allowing the timer tick to occur).

Fix by detecting and disabling the UNDI interrupt during the prefix
code.

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