Module Name: src
Committed By: jmcneill
Date: Thu Sep 26 14:28:14 UTC 2019
Modified Files:
src/sys/stand/efiboot: efiboot.c
Log Message:
Do a full reset of the console at startup
To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/sys/stand/efiboot/efiboot.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/stand/efiboot/efiboot.c
diff -u src/sys/stand/efiboot/efiboot.c:1.16 src/sys/stand/efiboot/efiboot.c:1.17
--- src/sys/stand/efiboot/efiboot.c:1.16 Sun Apr 21 22:30:41 2019
+++ src/sys/stand/efiboot/efiboot.c Thu Sep 26 14:28:14 2019
@@ -1,4 +1,4 @@
-/* $NetBSD: efiboot.c,v 1.16 2019/04/21 22:30:41 thorpej Exp $ */
+/* $NetBSD: efiboot.c,v 1.17 2019/09/26 14:28:14 jmcneill Exp $ */
/*-
* Copyright (c) 2018 Jared McNeill <[email protected]>
@@ -68,7 +68,10 @@ efi_main(EFI_HANDLE imageHandle, EFI_SYS
InitializeLib(imageHandle, systemTable);
- (void)uefi_call_wrapper(ST->ConOut->Reset, 2, ST->ConOut, FALSE);
+ uefi_call_wrapper(ST->ConOut->Reset, 2, ST->ConOut, TRUE);
+ uefi_call_wrapper(ST->ConOut->SetMode, 2, ST->ConOut, 0);
+ uefi_call_wrapper(ST->ConOut->EnableCursor, 2, ST->ConOut, TRUE);
+ uefi_call_wrapper(ST->ConOut->ClearScreen, 1, ST->ConOut);
status = uefi_call_wrapper(BS->AllocatePages, 4, AllocateAnyPages, EfiLoaderData, sz, &heap_start);
if (EFI_ERROR(status))