summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorJason Wright <jason@cvs.openbsd.org>2002-05-21 14:53:48 +0000
committerJason Wright <jason@cvs.openbsd.org>2002-05-21 14:53:48 +0000
commitc3e187a6c5f9079293d1e7d17cfaad1a6129bd3b (patch)
treef00bdea2091ae8e2c21a969c88afea56149aaac4 /sys/arch
parentea815fb9c5e8588da97e153c85f66b7016fc4f3e (diff)
Use rasops alloc_attr in alloc_screen so it doesn't crash when a screen is
added.
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/sparc64/dev/creator.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/arch/sparc64/dev/creator.c b/sys/arch/sparc64/dev/creator.c
index 07fff5814dd..39017f88a2d 100644
--- a/sys/arch/sparc64/dev/creator.c
+++ b/sys/arch/sparc64/dev/creator.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: creator.c,v 1.1 2002/05/21 04:31:03 jason Exp $ */
+/* $OpenBSD: creator.c,v 1.2 2002/05/21 14:53:47 jason Exp $ */
/*
* Copyright (c) 2002 Jason L. Wright (jason@thought.net)
@@ -307,10 +307,10 @@ creator_alloc_screen(v, type, cookiep, curxp, curyp, attrp)
if (sc->sc_nscreens > 0)
return (ENOMEM);
- *cookiep = &sc->sc_rcons;
- *curyp = *sc->sc_rcons.rc_crowp;
- *curxp = *sc->sc_rcons.rc_ccolp;
- rcons_alloc_attr(&sc->sc_rcons, 0, 0, 0, attrp);
+ *cookiep = &sc->sc_rasops;
+ *curyp = 0;
+ *curxp = 0;
+ sc->sc_rasops.ri_ops.alloc_attr(&sc->sc_rasops, 0, 0, 0, attrp);
sc->sc_nscreens++;
return (0);
}