From owner-svn-src-head@FreeBSD.ORG Tue Apr 14 10:41:32 2009 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 41AD91065687; Tue, 14 Apr 2009 10:41:32 +0000 (UTC) (envelope-from brde@optusnet.com.au) Received: from mail05.syd.optusnet.com.au (mail05.syd.optusnet.com.au [211.29.132.186]) by mx1.freebsd.org (Postfix) with ESMTP id B3F038FC17; Tue, 14 Apr 2009 10:41:31 +0000 (UTC) (envelope-from brde@optusnet.com.au) Received: from c122-107-120-227.carlnfd1.nsw.optusnet.com.au (c122-107-120-227.carlnfd1.nsw.optusnet.com.au [122.107.120.227]) by mail05.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id n3EAfSOx007096 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 14 Apr 2009 20:41:29 +1000 Date: Tue, 14 Apr 2009 20:41:28 +1000 (EST) From: Bruce Evans X-X-Sender: bde@delplex.bde.org To: John Baldwin In-Reply-To: <200904131048.16545.jhb@freebsd.org> Message-ID: <20090414202845.Y53192@delplex.bde.org> References: <200904111401.n3BE1108088009@svn.freebsd.org> <200904131048.16545.jhb@freebsd.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org, Ed Schouten Subject: Re: svn commit: r190919 - in head/sys: amd64/amd64 amd64/include i386/i386 i386/include X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Apr 2009 10:41:33 -0000 On Mon, 13 Apr 2009, John Baldwin wrote: > On Saturday 11 April 2009 10:01:01 am Ed Schouten wrote: >> Log: >> Simplify in/out functions (for i386 and AMD64). >> >> Remove a hack to generate more efficient code for port numbers below >> 0x100, which has been obsolete for at least ten years, because GCC has >> an asm constraint to specify that. >> >> Submitted by: Christoph Mallon > > Hmm, it appears that you broke the DDB usage: > > db> call inb(0x20) > > Since the functions are now called 'inb_' and 'outb_'. I pointed this out in an early review, sigh. > Perhaps the inline > routines should be _inb() and _outb() and inb and outb should still be macros > that wrap them that then get undefined in machdep.c for the functions used in > DDB? That would be ugly. We use better methods in atomic.h to un-inline _all_ the functions in atomic.h without changing their names, and _all_ the functions in cpufunc.h should be un-inlined too. However, in*() and out*() are useful enough to deserve full ddb support as commands. As commands, they can have the same names as the inline functions with no problems. I don't want cpufunc.h to be messed up with special macros to support just 2 functions. (atomic.h has some preprocessor messes to support atomic.c, but it at least does this generally.) Bruce