Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/i386/stand/efiboot efiboot: fix it can't boot from ...



details:   https://anonhg.NetBSD.org/src/rev/360917b11f9f
branches:  trunk
changeset: 321522:360917b11f9f
user:      nonaka <nonaka%NetBSD.org@localhost>
date:      Tue Mar 20 10:16:17 2018 +0000

description:
efiboot: fix it can't boot from HDD.

diffstat:

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

diffs (18 lines):

diff -r 41135770e526 -r 360917b11f9f sys/arch/i386/stand/efiboot/devopen.c
--- a/sys/arch/i386/stand/efiboot/devopen.c     Tue Mar 20 10:14:29 2018 +0000
+++ b/sys/arch/i386/stand/efiboot/devopen.c     Tue Mar 20 10:16:17 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: devopen.c,v 1.2 2018/03/08 10:34:33 nonaka Exp $        */
+/*     $NetBSD: devopen.c,v 1.3 2018/03/20 10:16:17 nonaka Exp $        */
 
 /*-
  * Copyright (c) 2005 The NetBSD Foundation, Inc.
@@ -66,7 +66,7 @@
 
        if (strcmp(devname, "hd") == 0)
                *biosdev = 0x80 + unit;
-       if (strcmp(devname, "cd") == 0)
+       else if (strcmp(devname, "cd") == 0)
                *biosdev = 0x80 + get_harddrives() + unit;
        else
                return ENXIO;



Home | Main Index | Thread Index | Old Index