Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Sat, 14 Dec 2002 17:07:26 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Sat, 14 Dec 2002 17:07:26 -0500 Received: from falcon.mail.pas.earthlink.net ([207.217.120.74]:54737 "EHLO falcon.mail.pas.earthlink.net") by vger.kernel.org with ESMTP id ; Sat, 14 Dec 2002 17:07:25 -0500 Date: Sat, 14 Dec 2002 15:08:04 -0800 (PST) From: James Simmons X-X-Sender: To: Linus Torvalds cc: Christoph Hellwig , Linux Kernel Mailing List , Linux Fbdev development list Subject: Re: [BK fbdev] Yet again more fbdev updates. In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1008 Lines: 28 > > 1) Its the same place on the screen or a different place every time? > > I think it's at the last line of the screen every time. I think I might now what the problem is. scrup is using memcpy even when the memory areas src, dest overlap. The key is to use memmove which handles overlapping memory gracefully. Tell me if the following patch works for you. --- vt.c.orig Sat Dec 14 13:32:42 2002 +++ vt.c Sat Dec 14 13:34:46 2002 @@ -262,7 +262,7 @@ return; d = (unsigned short *) (origin+video_size_row*t); s = (unsigned short *) (origin+video_size_row*(t+nr)); - scr_memcpyw(d, s, (b-t-nr) * video_size_row); + scr_memmovew(d, s, (b-t-nr) * video_size_row); scr_memsetw(d + (b-t-nr) * video_num_columns, video_erase_char, video_size_row*nr); } - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/