summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2013-07-06 18:08:48 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2013-07-06 18:08:48 +0000
commit40493fc1b7867754041e88ecec19087f49fb0fcd (patch)
tree7a9f8b854c984490e397ab71a45dd53058e0e25c
parent1861a2078a6598a62e0d0743c67bf9a69a0bc380 (diff)
Use the write-only rasops code to speed up the console framebuffer.
ok kettenis@
-rw-r--r--sys/arch/macppc/pci/vgafb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/macppc/pci/vgafb.c b/sys/arch/macppc/pci/vgafb.c
index ac8c3cbee45..91d3cb8bc74 100644
--- a/sys/arch/macppc/pci/vgafb.c
+++ b/sys/arch/macppc/pci/vgafb.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vgafb.c,v 1.47 2013/06/04 02:29:32 mpi Exp $ */
+/* $OpenBSD: vgafb.c,v 1.48 2013/07/06 18:08:47 mpi Exp $ */
/* $NetBSD: vga.c,v 1.3 1996/12/02 22:24:54 cgd Exp $ */
/*
@@ -133,7 +133,7 @@ vgafb_wsdisplay_attach(struct device *parent, struct vga_config *vc,
struct rasops_info *ri = &vc->ri;
long defattr;
- ri->ri_flg |= RI_VCONS;
+ ri->ri_flg |= RI_VCONS | RI_WRONLY;
rasops_init(ri, 160, 160);
ri->ri_ops.alloc_attr(ri->ri_active, 0, 0, 0, &defattr);