From owner-freebsd-ia64@FreeBSD.ORG Mon Jun 2 23:50:56 2003 Return-Path: Delivered-To: freebsd-ia64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E823A37B404 for ; Mon, 2 Jun 2003 23:50:56 -0700 (PDT) Received: from plim.fujitsu-siemens.com (plim.fujitsu-siemens.com [217.115.66.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id 412B943F75 for ; Mon, 2 Jun 2003 23:50:55 -0700 (PDT) (envelope-from alan.robinson@fujitsu-siemens.com) Received: from trulli.pdb.fsc.net (new-trulli.pdb.fsc.net [172.25.96.53]) h536osv13859; Tue, 3 Jun 2003 08:50:54 +0200 Received: from athen.mch.fsc.net (backbay.mch.fsc.net [172.25.94.188]) by trulli.pdb.fsc.net (8.11.6/8.11.6) with ESMTP id h536orV28974; Tue, 3 Jun 2003 08:50:53 +0200 Received: from sanpedro.mch.fsc.net (sanpedro [172.25.95.234]) by athen.mch.fsc.net (8.11.6/8.11.6) with ESMTP id h536oqI00613; Tue, 3 Jun 2003 08:50:52 +0200 (MDT) Received: (from robin@localhost) by sanpedro.mch.fsc.net (8.9.3p2/8.9.3/Debian 8.9.3-21) id IAA16264; Tue, 3 Jun 2003 08:50:52 +0200 From: Alan Robinson Date: Tue, 3 Jun 2003 08:50:52 +0200 To: Marcel Moolenaar Message-ID: <20030603085052.A2520@fujitsu-siemens.com> References: <20030530132408.A3690@fujitsu-siemens.com> <20030530173029.GB568@dhcp01.pn.xcllnt.net> <20030602133112.A3892@fujitsu-siemens.com> <20030602215156.GB1345@dhcp01.pn.xcllnt.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20030602215156.GB1345@dhcp01.pn.xcllnt.net>; from marcel@xcllnt.net on Mon, Jun 02, 2003 at 02:51:56PM -0700 X-sent-by-me: robin@sanpedro cc: freebsd-ia64@freebsd.org Subject: Re: /dev/kmem read return value is double requested value X-BeenThere: freebsd-ia64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Alan.Robinson@fujitsu-siemens.com List-Id: Porting FreeBSD to the IA-64 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Jun 2003 06:50:57 -0000 On Mon, Jun 02, 2003 at 02:51:56PM -0700, Marcel Moolenaar wrote: > On Mon, Jun 02, 2003 at 01:31:12PM +0200, Alan Robinson wrote: > > > > > > It helps if you demonstrate the behaviour with some trivial test program > > > that people can run too. > > > > > You are quite correct. I didn't even say the problem only seems to show > > up when trying to read info from kld loaded drivers, an example. > > That's odd. And yes, that can't be right :-) > It's a special offer, buy one byte get a second one free > I'll take a look at it when I have a spare cycle. > I compared the ia64/i386 mmrw() and another answer is to add a 'continue' after the /dev/kmem uiomove just like in i386. I bet the 4 lines are still junk left over from a previous life when the uiomove was a copyout? Alan