summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkettenis <kettenis@openbsd.org>2008-07-04 18:48:45 +0000
committerkettenis <kettenis@openbsd.org>2008-07-04 18:48:45 +0000
commite423c7eb2359b7aa0c908029d1d16dff76f71267 (patch)
tree2f7f2f1338fd94d14c1a7adfb8afa1f98406fec2
parentMake debug code compile. (diff)
downloadwireguard-openbsd-e423c7eb2359b7aa0c908029d1d16dff76f71267.tar.xz
wireguard-openbsd-e423c7eb2359b7aa0c908029d1d16dff76f71267.zip
Add a little hack to recognize the boot device on the v1280.
-rw-r--r--sys/arch/sparc64/sparc64/autoconf.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/arch/sparc64/sparc64/autoconf.c b/sys/arch/sparc64/sparc64/autoconf.c
index 0cdff89424e..dfdc7b5fa83 100644
--- a/sys/arch/sparc64/sparc64/autoconf.c
+++ b/sys/arch/sparc64/sparc64/autoconf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: autoconf.c,v 1.92 2008/07/04 17:20:27 kettenis Exp $ */
+/* $OpenBSD: autoconf.c,v 1.93 2008/07/04 18:48:45 kettenis Exp $ */
/* $NetBSD: autoconf.c,v 1.51 2001/07/24 19:32:11 eeh Exp $ */
/*
@@ -1205,6 +1205,12 @@ device_register(struct device *dev, void *aux)
if (bp == NULL)
return;
+ /*
+ * XXX Skip 'ssm' until we have a real driver for it.
+ */
+ if (strcmp(bp->name, "ssm") == 0)
+ bp = bootpath_store(1, bp + 1);
+
DPRINTF(ACDB_BOOTDEV,
("\n%s: device_register: devname %s(%s) component %s\n",
dev->dv_xname, devname, dev->dv_xname, bp->name));