[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH 2/2] common/efi: give people some time to read messages when debugging
From: Tamas K Lengyel <lengyelt@xxxxxxxxxxxx> The EFI messages flash by so fast that it is impossible to catch them without a serial debugger attached. Sometimes though we don't have that available so having some time to read the messages off the screen is valuable. Signed-off-by: Tamas K Lengyel <lengyelt@xxxxxxxxxxxx> Cc: Jan Beulich <jbeulich@xxxxxxxx> --- xen/common/efi/boot.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/xen/common/efi/boot.c b/xen/common/efi/boot.c index a3a439b838..1bce148bd9 100644 --- a/xen/common/efi/boot.c +++ b/xen/common/efi/boot.c @@ -321,6 +321,11 @@ static void __init noreturn blexit(const CHAR16 *str) PrintStr((CHAR16 *)str); PrintStr(newline); +#ifndef NDEBUG + if ( efi_bs ) + efi_bs->Stall(5000000); +#endif + if ( !efi_bs ) efi_arch_halt(); @@ -1300,6 +1305,10 @@ efi_start(EFI_HANDLE ImageHandle, EFI_SYSTEM_TABLE *SystemTable) if ( gop ) efi_set_gop_mode(gop, gop_mode); +#ifndef NDEBUG + efi_bs->Stall(5000000); +#endif + efi_exit_boot(ImageHandle, SystemTable); efi_arch_post_exit_boot(); -- 2.11.0 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx https://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |