From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 24284 invoked from network); 22 Jun 1999 12:15:23 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 22 Jun 1999 12:15:23 -0000 Received: from mailhost.xandmail.com (firewall-user@mailhost.xandmail.com [195.25.228.65]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id HAA14698 for ; Tue, 22 Jun 1999 07:20:57 -0400 Received: by mailhost.xandmail.com; id NAA02653; Tue, 22 Jun 1999 13:40:40 +0200 (MET DST) Received: from unknown(1.0.0.204) by mailhost.xandmail.com via smap (3.0) id xma002635; Tue, 22 Jun 99 13:40:21 +0200 From: "Vignaud Jean-Baptiste" To: "Pavel Machek" , "FrameBuffer" , "axp-list" Subject: RE: bug in fbmem.c, Date: Tue, 22 Jun 1999 13:03:16 +0200 Message-ID: <000f01bebc9e$d4544620$cc000001@PC_VIGNAUD.xandmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook 8.5, Build 4.71.2173.0 In-Reply-To: <19990622130211.05844@atrey.karlin.mff.cuni.cz> X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4 Importance: Normal > > Hi! > > > I'v traced a little bug in the fbmem code. i don't know if it's > the right > > way to > > correct it, but on my SX164 alpha this seems to work. > > > > before the patch: cat /dev/fb0 > foo end with an execption. > > after the patch: cat /dev/fb0 > foo ; cat foo > /dev/fb0 work. > > Can you try to > h = open (/dev/fb0, ) > read(h, 0, 256) > ? Yes, I want you to read into null. I suspect you need something like > memcpy_fromio_to_user() which does not actually exist :-). > Yes, that's right, maybe this 'memcpy_fromio_to_user' is needed. An other way to do this, as VANDROVE@vc.cvut.cz wrote, is to use a buffer and to do copy_from_user and memcpy_fromio... Is there another way to perform this? Jean-Baptiste Vignaud.