[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openbsd-sparc
Subject:    Re: X on Ultra10/Creator 3D?
From:       Miod Vallat <miod () online ! fr>
Date:       2005-06-09 19:08:40
Message-ID: 20050609190839.GO1578 () tekumel ! gentiane ! org
[Download RAW message or body]

> > I still get a kernel panic.
> 
> try this workaround. it worked for me.

Oops. My bad.

What about this diff instead?

Miod

Index: vgafb.c
===================================================================
RCS file: /cvs/src/sys/arch/sparc64/dev/vgafb.c,v
retrieving revision 1.41
diff -u -p -r1.41 vgafb.c
--- vgafb.c	2005/03/15 20:19:24	1.41
+++ vgafb.c	2005/06/09 19:08:21
@@ -196,8 +196,11 @@ vgafb_ioctl(v, cmd, data, flags, p)
 		break;
 	case WSDISPLAYIO_SMODE:
 		sc->sc_mode = *(u_int *)data;
-		if (sc->sc_mode == WSDISPLAYIO_MODE_EMUL)
-			fbwscons_setcolormap(&sc->sc_sunfb, vgafb_setcolor);
+		if (sc->sc_mode == WSDISPLAYIO_MODE_EMUL) {
+			if (sc->sc_console)	/* XXX needs sc_ofhandle */
+				fbwscons_setcolormap(&sc->sc_sunfb,
+				    vgafb_setcolor);
+		}
 		break;
 	case WSDISPLAYIO_GINFO:
 		wdf = (void *)data;

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic