summaryrefslogtreecommitdiff
path: root/sys/arch/sparc/dev/cgfour.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1995-11-09 21:34:48 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1995-11-09 21:34:48 +0000
commit1848f3689607781a442c3f9b95448510997e5fb3 (patch)
tree6818afd25264ca9160582f988cf6c492a1c04744 /sys/arch/sparc/dev/cgfour.c
parent605f25f01edaf6c5fa838f1ba154e4b2b4856ed0 (diff)
correct sun4 calls to fb_attach()
Diffstat (limited to 'sys/arch/sparc/dev/cgfour.c')
-rw-r--r--sys/arch/sparc/dev/cgfour.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/arch/sparc/dev/cgfour.c b/sys/arch/sparc/dev/cgfour.c
index 172706c3120..74f5b470733 100644
--- a/sys/arch/sparc/dev/cgfour.c
+++ b/sys/arch/sparc/dev/cgfour.c
@@ -201,7 +201,8 @@ cgfourattach(parent, self, args)
printf(" (console)\n");
} else
printf("\n");
- if (node == fbnode)
+ if ((node == fbnode && cputyp != CPU_SUN4) ||
+ (isconsole && cputyp == CPU_SUN4))
fb_attach(&sc->sc_fb);
}