~paravoid/Demos

40e5574b2b22de0a00de4be533ee3b4dc635ec3b — paravoid 2 years ago 4957e09 master
fix: select second gop instance
1 files changed, 5 insertions(+), 1 deletions(-)

M efigop/fix/efiboot.c
M efigop/fix/efiboot.c => efigop/fix/efiboot.c +5 -1
@@ 835,6 835,8 @@ efi_makebootargs(void)
	bios_efiinfo_t		*ei = &bios_efiinfo;
	int			 curmode;
	UINTN			 sz, gopsiz, bestsiz = 0;
	UINTN nhandles;
	EFI_HANDLE *handles;

	/*
	 * ACPI, BIOS configuration table


@@ 853,7 855,9 @@ efi_makebootargs(void)
	/*
	 * Frame buffer
	 */
	status = BS->LocateProtocol(&gop_guid, NULL, (void **)&gop);
	BS->LocateHandleBuffer(ByProtocol, &gop_guid, NULL, &nhandles, &handles);
	status = BS->HandleProtocol(handles[1], &gop_guid, (void **)&gop);
	BS->FreePool(handles);
	if (!EFI_ERROR(status)) {
		if (gopmode < 0) {
			for (i = 0; i < gop->Mode->MaxMode; i++) {