Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1IprN5-00015t-Kr for mharc-grub-devel@gnu.org; Wed, 07 Nov 2007 15:19:31 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IprN2-00012f-No for grub-devel@gnu.org; Wed, 07 Nov 2007 15:19:28 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IprMv-0000vD-TU for grub-devel@gnu.org; Wed, 07 Nov 2007 15:19:26 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IprMv-0000vA-Mu for grub-devel@gnu.org; Wed, 07 Nov 2007 15:19:21 -0500 Received: from aybabtu.com ([69.60.117.155]) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IprMv-00014M-2v for grub-devel@gnu.org; Wed, 07 Nov 2007 15:19:21 -0500 Received: from [192.168.10.6] (helo=thorin) by aybabtu.com with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1IprMs-0006Rl-T9 for grub-devel@gnu.org; Wed, 07 Nov 2007 21:19:19 +0100 Received: from rmh by thorin with local (Exim 4.63) (envelope-from ) id 1IprMh-0002lE-2n for grub-devel@gnu.org; Wed, 07 Nov 2007 21:19:07 +0100 Date: Wed, 7 Nov 2007 21:19:07 +0100 From: Robert Millan To: The development of GRUB 2 Message-ID: <20071107201907.GB10337@thorin> References: <4730DDB8.4090902@nic.fi> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <4730DDB8.4090902@nic.fi> Organization: free as in freedom X-Message-Flag: Microsoft discourages use of Outlook. X-Debbugs-No-Ack: true User-Agent: Mutt/1.5.13 (2006-08-11) X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. Subject: Re: grub2 ChangeLog term/i386/pc/serial.c X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Nov 2007 20:19:30 -0000 On Tue, Nov 06, 2007 at 11:33:44PM +0200, Vesa Jääskeläinen wrote: > > 2007-11-06 Robert Millan > > > > * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments > > in grub_outb() calls. > > (serial_hw_init): Likewise. > > > > CVSWeb URLs: > > http://cvs.savannah.gnu.org/viewcvs/grub2/ChangeLog?cvsroot=grub&r1=1.437&r2=1.438 > > http://cvs.savannah.gnu.org/viewcvs/grub2/term/i386/pc/serial.c?cvsroot=grub&r1=1.4&r2=1.5 > > Why on earth those parameters are reversed anyway :) ? My fault :-) When I replaced inb() and outb() in that file, I assumed they would have the same semantics as grub_inb() and grub_outb(). > On all systems that I can remember arguments for lots of things go like > this: > > func(destination, source) > > examples are: > memcpy, strcpy > > On most of the other systems outp is also outp(port, value) > ("destination, source"). Eg. following the same convention. grub_inb() and grub_outb() are based on the inb()/outb() implementation from glibc headers, so I kept the same arguments for consistency. -- Robert Millan I know my rights; I want my phone call! What use is a phone call, if you are unable to speak? (as seen on /.)