From 19c77efe963b743268813dd90115acb445ff99f3 Mon Sep 17 00:00:00 2001 From: thorpej Date: Fri, 24 Oct 1997 23:03:02 +0000 Subject: [PATCH] In vga_erasecols(), fix botched count and reversed arguments to bus_space_set_region_2(). From Chris Demetriou . --- sys/arch/alpha/common/vga.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/sys/arch/alpha/common/vga.c b/sys/arch/alpha/common/vga.c index 7d846f8cd10c..ad387354c989 100644 --- a/sys/arch/alpha/common/vga.c +++ b/sys/arch/alpha/common/vga.c @@ -1,4 +1,4 @@ -/* $NetBSD: vga.c,v 1.9 1997/09/25 01:31:53 thorpej Exp $ */ +/* $NetBSD: vga.c,v 1.10 1997/10/24 23:03:02 thorpej Exp $ */ /* * Copyright (c) 1995, 1996 Carnegie-Mellon University. @@ -29,7 +29,7 @@ #include /* RCS ID & Copyright macro defns */ -__KERNEL_RCSID(0, "$NetBSD: vga.c,v 1.9 1997/09/25 01:31:53 thorpej Exp $"); +__KERNEL_RCSID(0, "$NetBSD: vga.c,v 1.10 1997/10/24 23:03:02 thorpej Exp $"); #include #include @@ -315,15 +315,14 @@ vga_erasecols(id, row, startcol, ncols) int row, startcol, ncols; { struct vga_config *vc = id; - bus_size_t off, count; + bus_size_t off; u_int16_t val; off = (row * vc->vc_ncol + startcol) * 2; - count = ncols * 2; val = (vc->vc_at << 8) | ' '; - bus_space_set_region_2(vc->vc_memt, vc->vc_memh, off, count, val); + bus_space_set_region_2(vc->vc_memt, vc->vc_memh, off, val, ncols); } static void