Additional fix to support use on headless EFI systems (issue #240)

This commit is contained in:
Martin Whitaker 2023-02-11 09:14:56 +00:00
parent 8305d47675
commit f62bbfde32
1 changed files with 4 additions and 0 deletions

View File

@ -502,6 +502,10 @@ static efi_status_t set_screen_info(boot_params_t *boot_params)
status = EFI_SUCCESS;
}
efi_call_bs(free_pool, handles);
} else if (status == EFI_NOT_FOUND) {
// This may be a headless system. We can still output to a serial console.
boot_params->screen_info.orig_video_isVGA = VIDEO_TYPE_NONE;
status = EFI_SUCCESS;
}
return status;