freebsd-nq/sys/boot/efi/libefi
Doug Ambrisko b6a6b77b12 Fix UEFI PXE boot on a NIC that isn't the first NIC.
In UEFI it appears all available NICS are present to pass network traffic.
This gives the capability to load the loader.efi from disk then set
currdev="net3:" and then all I/O will over over the 2nd NIC.  On this
machine is appears the first handle is the first NIC in IPv4 mode and
then the 2nd handle is the first NIC in IPv6 mode.  The 3rd handle is
the 2nd NIC in IPv4 mode.  The fix is to index into the handle based
on the unit cached from boot device passed into the loader.

Some testing info from a test boot via kenv:
	currdev="net3:"
	loaddev="net3:"
	boot.netif.name="igb1"
2015-01-30 18:25:53 +00:00
..
delay.c
efi_console.c
efinet.c Fix UEFI PXE boot on a NIC that isn't the first NIC. 2015-01-30 18:25:53 +00:00
efipart.c Add explicit casts to quiet warnings in libefi 2014-04-08 18:21:38 +00:00
errno.c
handles.c Merge efilib changes from projects/uefi 2014-04-03 21:39:59 +00:00
libefi.c Switch to text mode in UEFI boot 2014-09-18 13:59:36 +00:00
Makefile Add support for serial and null console to UEFI boot loader. 2014-09-12 17:32:28 +00:00
time.c