Source-Changes-HG archive

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

[src/netbsd-8]: src/sys/arch/i386/stand/efiboot Pull up following revision(s)...



details:   https://anonhg.NetBSD.org/src/rev/dbf2827ee609
branches:  netbsd-8
changeset: 745705:dbf2827ee609
user:      martin <martin%NetBSD.org@localhost>
date:      Mon Mar 09 09:48:00 2020 +0000

description:
Pull up following revision(s) (requested by nonaka in ticket #1519):

        sys/arch/i386/stand/efiboot/eficons.c: revision 1.10
        sys/arch/i386/stand/efiboot/eficons.c: revision 1.11

If the default GOP mode is unavailable, fallback to the first mode defined.
PR# port-amd64/55000

Remove check for bestmode==-1 (shouldn't happen)

diffstat:

 sys/arch/i386/stand/efiboot/eficons.c |  9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diffs (38 lines):

diff -r 84dc4168e570 -r dbf2827ee609 sys/arch/i386/stand/efiboot/eficons.c
--- a/sys/arch/i386/stand/efiboot/eficons.c     Sun Mar 08 10:03:19 2020 +0000
+++ b/sys/arch/i386/stand/efiboot/eficons.c     Mon Mar 09 09:48:00 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: eficons.c,v 1.4.2.5 2020/02/11 11:38:33 martin Exp $   */
+/*     $NetBSD: eficons.c,v 1.4.2.6 2020/03/09 09:48:00 martin Exp $   */
 
 /*-
  * Copyright (c) 2016 Kimihiro Nonaka <nonaka%netbsd.org@localhost>
@@ -37,6 +37,7 @@
 #ifndef DEFAULT_GOP_MODE
 #define DEFAULT_GOP_MODE       "1024x768"
 #endif
+#define FALLBACK_GOP_MODE      0
 
 extern struct x86_boot_params boot_params;
 
@@ -420,7 +421,7 @@
        EFI_STATUS status;
        EFI_GRAPHICS_OUTPUT_MODE_INFORMATION *info;
        struct btinfo_framebuffer fb;
-       INT32 bestmode = -1;
+       INT32 bestmode;
        UINTN sz;
 
        if (efi_gop == NULL)
@@ -431,9 +432,9 @@
        } else {
                /* If a mode has not been selected, choose a default */
                bestmode = efi_find_gop_mode(DEFAULT_GOP_MODE);
+               if (bestmode == -1)
+                       bestmode = FALLBACK_GOP_MODE;
        }
-       if (bestmode == -1)
-               goto nofb;
 
        status = uefi_call_wrapper(efi_gop->SetMode, 2, efi_gop,
            bestmode);



Home | Main Index | Thread Index | Old Index