summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2006-03-12 22:22:40 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2006-03-12 22:22:40 +0000
commit539dcb98eeb7d4d2451ec3abc4d5b31d7f20906c (patch)
tree3ee5b4063c1d82319f84a06294ee214c9e7162ae /sys/arch
parenta44a962242f173c1861d9ffb788f21a3d0d848c7 (diff)
Move struct wsscreen_list out of the stack as on sparc.
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/hp300/dev/diofb.c9
-rw-r--r--sys/arch/hp300/dev/diofbvar.h3
2 files changed, 6 insertions, 6 deletions
diff --git a/sys/arch/hp300/dev/diofb.c b/sys/arch/hp300/dev/diofb.c
index 65dbb361d59..a408c05493d 100644
--- a/sys/arch/hp300/dev/diofb.c
+++ b/sys/arch/hp300/dev/diofb.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: diofb.c,v 1.8 2006/02/14 18:46:17 miod Exp $ */
+/* $OpenBSD: diofb.c,v 1.9 2006/03/12 22:22:39 miod Exp $ */
/*
* Copyright (c) 2005, Miodrag Vallat
@@ -301,7 +301,6 @@ diofb_end_attach(void *sc, struct wsdisplay_accessops *accessops,
{
struct wsemuldisplaydev_attach_args waa;
struct wsscreen_descr *scrlist[1];
- struct wsscreen_list screenlist;
printf(": %dx%d", fb->dwidth, fb->dheight);
@@ -315,11 +314,11 @@ diofb_end_attach(void *sc, struct wsdisplay_accessops *accessops,
printf(" frame buffer\n");
scrlist[0] = &fb->wsd;
- screenlist.nscreens = 1;
- screenlist.screens = (const struct wsscreen_descr **)scrlist;
+ fb->wsl.nscreens = 1;
+ fb->wsl.screens = (const struct wsscreen_descr **)scrlist;
waa.console = console;
- waa.scrdata = &screenlist;
+ waa.scrdata = &fb->wsl;
waa.accessops = accessops;
waa.accesscookie = fb;
diff --git a/sys/arch/hp300/dev/diofbvar.h b/sys/arch/hp300/dev/diofbvar.h
index eace8c24262..c3304ba24ee 100644
--- a/sys/arch/hp300/dev/diofbvar.h
+++ b/sys/arch/hp300/dev/diofbvar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: diofbvar.h,v 1.5 2005/12/31 18:13:41 miod Exp $ */
+/* $OpenBSD: diofbvar.h,v 1.6 2006/03/12 22:22:39 miod Exp $ */
/*
* Copyright (c) 2005, Miodrag Vallat
@@ -91,6 +91,7 @@ struct diofb {
/* wsdisplay information */
struct wsscreen_descr wsd;
+ struct wsscreen_list wsl;
int nscreens;
u_int mapmode;