Repair boot device detection when booting off the second SCSI controller on
authormiod <miod@openbsd.org>
Sat, 25 Apr 2015 21:15:08 +0000 (21:15 +0000)
committermiod <miod@openbsd.org>
Sat, 25 Apr 2015 21:15:08 +0000 (21:15 +0000)
AV530.

sys/arch/aviion/aviion/autoconf.c
sys/arch/aviion/aviion/av530_machdep.c

index fbbebfe..ca33d59 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: autoconf.c,v 1.16 2013/10/10 21:24:58 miod Exp $      */
+/*     $OpenBSD: autoconf.c,v 1.17 2015/04/25 21:15:08 miod Exp $      */
 /*
  * Copyright (c) 1998 Steve Murphree, Jr.
  * Copyright (c) 1996 Nivas Madhur
@@ -156,6 +156,7 @@ strtoi(const char *s)
                        break;
                val *= 10;
                val += c - '0';
+               c = *s++;
        }
 
        return val;
index 8e7e143..a8e7b78 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: av530_machdep.c,v 1.14 2014/12/16 21:29:05 miod Exp $ */
+/*     $OpenBSD: av530_machdep.c,v 1.15 2015/04/25 21:15:08 miod Exp $ */
 /*
  * Copyright (c) 2006, 2007, 2010 Miodrag Vallat.
  *
@@ -221,7 +221,7 @@ av530_get_boot_device(uint32_t *name, u_int unit)
                case 0:
                        return AV530_SCSI1;
                case 1:
-                       return AV530_SCSI1;
+                       return AV530_SCSI2;
                }
                break;
        }