opnsense-src/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 Use __FBSDID rather than rcsid[]. 2003-04-03 21:36:33 +00:00
efi_console.c Reset the text attributes when initializing the console. The EFI 2004-03-09 04:00:33 +00:00
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 Major rework of the ia64 loaders. The two primary objectives are: 2006-11-05 22:03:04 +00:00
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 Major rework of the ia64 loaders. The two primary objectives are: 2006-11-05 22:03:04 +00:00