From 4d00ed48595105f2f08ef55cb2ed68e4c9d33019 Mon Sep 17 00:00:00 2001 From: Michael Shalayeff Date: Tue, 21 Jan 2003 19:55:14 +0000 Subject: fix cut and paste piece in dma programming, caused jumpieness in animation; good diagnose by Kamil Andrusz --- sys/dev/pci/bktr/bktr_core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/dev/pci/bktr') diff --git a/sys/dev/pci/bktr/bktr_core.c b/sys/dev/pci/bktr/bktr_core.c index 73b5cf7d5a6..1c6607ea9d3 100644 --- a/sys/dev/pci/bktr/bktr_core.c +++ b/sys/dev/pci/bktr/bktr_core.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bktr_core.c,v 1.8 2003/01/15 06:30:35 art Exp $ */ +/* $OpenBSD: bktr_core.c,v 1.9 2003/01/21 19:55:13 mickey Exp $ */ /* $FreeBSD: src/sys/dev/bktr/bktr_core.c,v 1.114 2000/10/31 13:09:56 roger Exp $ */ /* @@ -2886,7 +2886,7 @@ rgb_vbi_prog(bktr_ptr_t bktr, char i_flag, int cols, int rows, int interlace ) *dma_prog++ = (u_int )vtophys(loop_point) ; #else *dma_prog++ = htole32(bktr->dm_prog->dm_segs->ds_addr + - ((void *)loop_point - (void *)dma_prog)); + ((void *)loop_point - (void *)bktr->dma_prog)); #endif *dma_prog++ = htole32(0); /* NULL WORD */ -- cgit v1.2.3