When there are multiple GOPs, try to select first one from which we
authoryasuoka <yasuoka@openbsd.org>
Mon, 20 Jun 2022 02:22:05 +0000 (02:22 +0000)
committeryasuoka <yasuoka@openbsd.org>
Mon, 20 Jun 2022 02:22:05 +0000 (02:22 +0000)
commitbdeb634f323f347679a4bb2a43b0479721214c70
tree2b439c667e01a46bee91098dabd3ec4fd823d62f
parentd3f5ce7613848b361ec06b8f2d44ad34c6022628
When there are multiple GOPs, try to select first one from which we
can get a handle of DevicePath protocol if any, otherwise select first
one.  This is expected to workaround the garbled screen problem when
booting with efiboot happened on some machines.

origin diff from Alexei K.
sys/arch/amd64/stand/efiboot/conf.c
sys/arch/amd64/stand/efiboot/efiboot.c