diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2002-11-06 21:06:23 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2002-11-06 21:06:23 +0000 |
commit | 3db638110f445fdee0af026ba42b338baa48ae85 (patch) | |
tree | cdce3c99d6438633abf2f3fb6fda1f5cf804395e /sys/arch/sparc/dev/cgtwelve.c | |
parent | 60735805896012b6000a99f7de1678fd7cbfa3b6 (diff) |
- always initialize colormaps, even if the frame buffer is non console; this
helps if the ramdac does not get initialized (idea from jason@)
- only register a shutdown hook for the frame buffers which need it, if this
is the console frame buffer. Otherwise this is just a waste of time.
Diffstat (limited to 'sys/arch/sparc/dev/cgtwelve.c')
-rw-r--r-- | sys/arch/sparc/dev/cgtwelve.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/arch/sparc/dev/cgtwelve.c b/sys/arch/sparc/dev/cgtwelve.c index a2e29bbc8bc..af9a07e53fd 100644 --- a/sys/arch/sparc/dev/cgtwelve.c +++ b/sys/arch/sparc/dev/cgtwelve.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cgtwelve.c,v 1.4 2002/09/23 18:13:38 miod Exp $ */ +/* $OpenBSD: cgtwelve.c,v 1.5 2002/11/06 21:06:20 miod Exp $ */ /* * Copyright (c) 2002 Miodrag Vallat. All rights reserved. @@ -260,15 +260,16 @@ cgtwelveattach(parent, self, args) if (isconsole) { if (sc->sc_sunfb.sf_depth == 1) { fbwscons_console_init(&sc->sc_sunfb, - &cgtwelve_stdscreen, -1, NULL, NULL); + &cgtwelve_stdscreen, -1, NULL); } else { /* * Since the screen has been cleared, restart at the * top of the screen. */ fbwscons_console_init(&sc->sc_sunfb, - &cgtwelve_stdscreen, 0, NULL, cgtwelve_burner); + &cgtwelve_stdscreen, 0, cgtwelve_burner); } + shutdownhook_establish(cgtwelve_prom, sc); } sbus_establish(&sc->sc_sd, &sc->sc_sunfb.sf_dev); |