Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/stand/efiboot Do a full reset of the console at startup



details:   https://anonhg.NetBSD.org/src/rev/5f7879667f95
branches:  trunk
changeset: 454731:5f7879667f95
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Thu Sep 26 14:28:14 2019 +0000

description:
Do a full reset of the console at startup

diffstat:

 sys/stand/efiboot/efiboot.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r ded8fa1e8d4d -r 5f7879667f95 sys/stand/efiboot/efiboot.c
--- a/sys/stand/efiboot/efiboot.c       Thu Sep 26 12:21:03 2019 +0000
+++ b/sys/stand/efiboot/efiboot.c       Thu Sep 26 14:28:14 2019 +0000
@@ -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 <jmcneill%invisible.ca@localhost>
@@ -68,7 +68,10 @@
 
        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))



Home | Main Index | Thread Index | Old Index