From: Tamas K Lengyel <lengy...@ainfosec.com>

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 <lengy...@ainfosec.com>
Cc: Jan Beulich <jbeul...@suse.com>
---
 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@lists.xen.org
https://lists.xen.org/xen-devel

Reply via email to