Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sparc64/sparc64 Detect a boot device more precisely...



details:   https://anonhg.NetBSD.org/src/rev/47a1bf6968ec
branches:  trunk
changeset: 810006:47a1bf6968ec
user:      nakayama <nakayama%NetBSD.org@localhost>
date:      Fri Aug 14 02:28:18 2015 +0000

description:
Detect a boot device more precisely on QEMU by checking the device
name.

diffstat:

 sys/arch/sparc64/sparc64/autoconf.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r 254c81181f10 -r 47a1bf6968ec sys/arch/sparc64/sparc64/autoconf.c
--- a/sys/arch/sparc64/sparc64/autoconf.c       Fri Aug 14 02:04:16 2015 +0000
+++ b/sys/arch/sparc64/sparc64/autoconf.c       Fri Aug 14 02:28:18 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: autoconf.c,v 1.203 2015/06/14 19:05:27 martin Exp $ */
+/*     $NetBSD: autoconf.c,v 1.204 2015/08/14 02:28:18 nakayama Exp $ */
 
 /*
  * Copyright (c) 1996
@@ -48,7 +48,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.203 2015/06/14 19:05:27 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.204 2015/08/14 02:28:18 nakayama Exp $");
 
 #include "opt_ddb.h"
 #include "opt_kgdb.h"
@@ -843,7 +843,8 @@
                        snprintf(buf, sizeof(buf), "%s@w%016" PRIx64 ",%d",
                            name, wwn, lun);
                else if (ide_node)
-                       snprintf(buf, sizeof(buf), "%s@0", name);
+                       snprintf(buf, sizeof(buf), "%s@0",
+                           device_is_a(dev, "cd") ? "cdrom" : "disk");
                else
                        snprintf(buf, sizeof(buf), "%s@%d,%d",
                            name, target, lun);



Home | Main Index | Thread Index | Old Index