]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[efi] Use casts rather than virt_to_bus() for UNDI buffer addresses
authorMichael Brown <mcb30@ipxe.org>
Sun, 15 Nov 2020 23:33:52 +0000 (23:33 +0000)
committerMichael Brown <mcb30@ipxe.org>
Sun, 15 Nov 2020 23:36:17 +0000 (23:36 +0000)
commitfc5cf18dab3ab88aff00e6ed2915a5e960eeb085
tree5873f61f809211585dac742e3954d577ac504843
parent83b8c0e21165d006b877ecfed6fade903b72c402
[efi] Use casts rather than virt_to_bus() for UNDI buffer addresses

For a software UNDI, the addresses in PXE_CPB_TRANSMIT.FrameAddr and
PXE_CPB_RECEIVE.BufferAddr are host addresses, not bus addresses.

Remove the spurious (and no-op) use of virt_to_bus() and replace with
a cast via intptr_t.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/drivers/net/efi/nii.c