From mboxrd@z Thu Jan 1 00:00:00 1970 From: Len Brown Subject: Re: Re: Linux 2.4.26-rc1 (cmpxchg vs 80386 build) Date: 30 Mar 2004 12:44:33 -0500 Sender: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Message-ID: <1080668673.989.106.camel@dhcppc4> References: <1080535754.16221.188.camel@dhcppc4> <20040329052238.GD1276@alpha.home.local> <1080598062.983.3.camel@dhcppc4> <1080651370.25228.1.camel@dhcp23.swansea.linux.org.uk> <20040330142215.GA21931@alpha.home.local> <20040330150949.GA22073@alpha.home.local> <20040330161431.GA22272@alpha.home.local> <4069A359.7040908@nortelnetworks.com> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4069A359.7040908-hwFIcccggHZv6pq1l3V1OdBPR1lH4CV8@public.gmane.org> Errors-To: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: Chris Friesen Cc: Willy Tarreau , "Richard B. Johnson" , Alan Cox , Arkadiusz Miskiewicz , Marcelo Tosatti , Linux Kernel Mailing List , ACPI Developers List-Id: linux-acpi@vger.kernel.org Sorry I didn't reply to this thread, after Alan wrote I figured the topic was closed;-) Yes, per my initial message, gcc _will_ generate cmpxchg for the 80386 build. Indeed, it has been doing so for over a year with ACPI's previous private (and flawed) asm() invocation of cmpxchg. Andi/Alan suggested we invoke cmpxchg always in ACPI, but disable ACPI at boot-time in the unlikely event we find ourselves running on a cpu without that instruction. Luming has already taking a swing at this patch here: http://bugzilla.kernel.org/show_bug.cgi?id=2391 thanks, -Len ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click