summaryrefslogtreecommitdiff
path: root/sys/arch/sgi
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2010-03-08 20:54:46 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2010-03-08 20:54:46 +0000
commit3ddf5c04d114a466a1a1020cc65ef9aa2dbfb3e9 (patch)
treec3a02971548279e6de5067ae975cc1da167d7c8b /sys/arch/sgi
parent82a1d7d5f4c16d3fb7a2ce88ec44281ba1f2e04d (diff)
Correctly initialize all members of struct wsemuldisplaydev_attach_args
before attaching wsdisplay; it was turning out harmless but using more cpu time for nothing than necessary. ok deraadt@
Diffstat (limited to 'sys/arch/sgi')
-rw-r--r--sys/arch/sgi/dev/gbe.c4
-rw-r--r--sys/arch/sgi/xbow/odyssey.c3
2 files changed, 5 insertions, 2 deletions
diff --git a/sys/arch/sgi/dev/gbe.c b/sys/arch/sgi/dev/gbe.c
index bb1d77865cb..766aa3dc1cd 100644
--- a/sys/arch/sgi/dev/gbe.c
+++ b/sys/arch/sgi/dev/gbe.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: gbe.c,v 1.11 2010/03/07 13:44:24 miod Exp $ */
+/* $OpenBSD: gbe.c,v 1.12 2010/03/08 20:54:42 miod Exp $ */
/*
* Copyright (c) 2007, 2008, 2009 Joel Sing <jsing@openbsd.org>
@@ -244,6 +244,7 @@ gbe_attach(struct device *parent, struct device *self, void *aux)
waa.scrdata = &gbe_screenlist;
waa.accessops = &gbe_accessops;
waa.accesscookie = &gbe_consdata;
+ waa.defaultscreens = 0;
config_found(self, &waa, wsemuldisplaydevprint);
return;
@@ -413,6 +414,7 @@ gbe_attach(struct device *parent, struct device *self, void *aux)
waa.scrdata = &gbe_screenlist;
waa.accessops = &gbe_accessops;
waa.accesscookie = screen;
+ waa.defaultscreens = 0;
config_found(self, &waa, wsemuldisplaydevprint);
return;
diff --git a/sys/arch/sgi/xbow/odyssey.c b/sys/arch/sgi/xbow/odyssey.c
index f425da0ef19..6c69f1ec420 100644
--- a/sys/arch/sgi/xbow/odyssey.c
+++ b/sys/arch/sgi/xbow/odyssey.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: odyssey.c,v 1.2 2010/03/07 13:44:26 miod Exp $ */
+/* $OpenBSD: odyssey.c,v 1.3 2010/03/08 20:54:45 miod Exp $ */
/*
* Copyright (c) 2009, 2010 Joel Sing <jsing@openbsd.org>
*
@@ -245,6 +245,7 @@ odyssey_attach(struct device *parent, struct device *self, void *aux)
waa.scrdata = &odyssey_screenlist;
waa.accessops = &odyssey_accessops;
waa.accesscookie = screen;
+ waa.defaultscreens = 0;
config_found(self, &waa, wsemuldisplaydevprint);
}