From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sc8-sf-mx2-b.sourceforge.net ([10.3.1.92] helo=mail.sourceforge.net) by sc8-sf-list1-new.sourceforge.net with esmtp (Exim 4.43) id 1JCiEJ-0006Fj-E4 for user-mode-linux-devel@lists.sourceforge.net; Wed, 09 Jan 2008 13:12:55 -0800 Received: from cantor2.suse.de ([195.135.220.15] helo=mx2.suse.de) by mail.sourceforge.net with esmtps (TLSv1:AES256-SHA:256) (Exim 4.44) id 1JCiEI-0000D3-0P for user-mode-linux-devel@lists.sourceforge.net; Wed, 09 Jan 2008 13:12:55 -0800 From: Andi Kleen References: Date: Wed, 09 Jan 2008 22:12:43 +0100 In-Reply-To: (Miklos Szeredi's message of "Wed\, 09 Jan 2008 22\:01\:36 +0100") Message-ID: MIME-Version: 1.0 Subject: Re: [uml-devel] uml and -regparm=3 List-Id: The user-mode Linux development list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sender: user-mode-linux-devel-bounces@lists.sourceforge.net Errors-To: user-mode-linux-devel-bounces@lists.sourceforge.net To: Miklos Szeredi Cc: jdike@addtoit.com, akpm@linux-foundation.org, user-mode-linux-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org Miklos Szeredi writes: > FASTCALL is defined empty in -mm, but UML is not compiled with > -mregparm=3D3 and so this breaks things (I noticed problems with > rwsem_down_write_failed). > > Tried recompiling UML with -mregparm=3D3, but that resulted in a strange > failure immediately after startup: > > |%G=EF=BF=BD%@: Invalid argument > > What's up? UML links with glibc and that does not use -mregparm. = You can only use -mregparm in user space if you recompile all libraries too. -Andi ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ User-mode-linux-devel mailing list User-mode-linux-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755484AbYAIVM4 (ORCPT ); Wed, 9 Jan 2008 16:12:56 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752625AbYAIVMt (ORCPT ); Wed, 9 Jan 2008 16:12:49 -0500 Received: from mx2.suse.de ([195.135.220.15]:47718 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751893AbYAIVMs convert rfc822-to-8bit (ORCPT ); Wed, 9 Jan 2008 16:12:48 -0500 To: Miklos Szeredi Cc: jdike@addtoit.com, akpm@linux-foundation.org, linux-kernel@vger.kernel.org, user-mode-linux-devel@lists.sourceforge.net Subject: Re: uml and -regparm=3 From: Andi Kleen References: Date: Wed, 09 Jan 2008 22:12:43 +0100 In-Reply-To: (Miklos Szeredi's message of "Wed\, 09 Jan 2008 22\:01\:36 +0100") Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Miklos Szeredi writes: > FASTCALL is defined empty in -mm, but UML is not compiled with > -mregparm=3 and so this breaks things (I noticed problems with > rwsem_down_write_failed). > > Tried recompiling UML with -mregparm=3, but that resulted in a strange > failure immediately after startup: > > |%G�%@: Invalid argument > > What's up? UML links with glibc and that does not use -mregparm. You can only use -mregparm in user space if you recompile all libraries too. -Andi