diff options
Diffstat (limited to 'sys/arch/sparc64')
-rw-r--r-- | sys/arch/sparc64/dev/fb.c | 7 | ||||
-rw-r--r-- | sys/arch/sparc64/include/fbvar.h | 3 |
2 files changed, 5 insertions, 5 deletions
diff --git a/sys/arch/sparc64/dev/fb.c b/sys/arch/sparc64/dev/fb.c index 42e6b4f5143..d5c94e5bab1 100644 --- a/sys/arch/sparc64/dev/fb.c +++ b/sys/arch/sparc64/dev/fb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fb.c,v 1.9 2006/03/12 22:17:50 miod Exp $ */ +/* $OpenBSD: fb.c,v 1.10 2006/03/12 22:53:02 miod Exp $ */ /* $NetBSD: fb.c,v 1.23 1997/07/07 23:30:22 pk Exp $ */ /* @@ -280,7 +280,6 @@ void fbwscons_attach(struct sunfb *sf, struct wsdisplay_accessops *op, int isconsole) { struct wsemuldisplaydev_attach_args waa; - struct wsscreen_descr *scrlist[1]; if (isconsole == 0) { /* done in wsdisplay_cnattach() earlier if console */ @@ -291,9 +290,9 @@ fbwscons_attach(struct sunfb *sf, struct wsdisplay_accessops *op, int isconsole) fb_cookie = sf; } - scrlist[0] = &sf->sf_wsd; + sf->sf_scrlist[0] = &sf->sf_wsd; sf->sf_wsl.nscreens = 1; - sf->sf_wsl.screens = (const struct wsscreen_descr **)scrlist; + sf->sf_wsl.screens = (const struct wsscreen_descr **)sf->sf_scrlist; waa.console = isconsole; waa.scrdata = &sf->sf_wsl; diff --git a/sys/arch/sparc64/include/fbvar.h b/sys/arch/sparc64/include/fbvar.h index f3a76864f67..59a1aeb38bd 100644 --- a/sys/arch/sparc64/include/fbvar.h +++ b/sys/arch/sparc64/include/fbvar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: fbvar.h,v 1.5 2006/03/12 22:17:51 miod Exp $ */ +/* $OpenBSD: fbvar.h,v 1.6 2006/03/12 22:53:02 miod Exp $ */ /* $NetBSD: fbvar.h,v 1.9 1997/07/07 23:31:30 pk Exp $ */ /* @@ -61,6 +61,7 @@ struct sunfb { struct wsscreen_descr sf_wsd; struct wsscreen_list sf_wsl; + struct wsscreen_descr *sf_scrlist[1]; }; /* |