From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S265291AbUHHMdP (ORCPT ); Sun, 8 Aug 2004 08:33:15 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S265301AbUHHMdP (ORCPT ); Sun, 8 Aug 2004 08:33:15 -0400 Received: from cantor.suse.de ([195.135.220.2]:57033 "EHLO Cantor.suse.de") by vger.kernel.org with ESMTP id S265291AbUHHMdL (ORCPT ); Sun, 8 Aug 2004 08:33:11 -0400 To: Zwane Mwaikambo Cc: Linus Torvalds , Linux Kernel , Andrew Morton , Matt Mackall Subject: Re: [PATCH][2.6] Completely out of line spinlocks / i386 References: From: Andreas Schwab X-Yow: Is this ANYWHERE, USA? Date: Sun, 08 Aug 2004 14:33:07 +0200 In-Reply-To: (Zwane Mwaikambo's message of "Sun, 8 Aug 2004 02:00:32 -0400 (EDT)") Message-ID: User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (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 X-Mailing-List: linux-kernel@vger.kernel.org Zwane Mwaikambo writes: > Index: linux-2.6.8-rc3-mm1/arch/i386/lib/spinlock.c > =================================================================== > RCS file: linux-2.6.8-rc3-mm1/arch/i386/lib/spinlock.c > diff -N linux-2.6.8-rc3-mm1/arch/i386/lib/spinlock.c > --- /dev/null 1 Jan 1970 00:00:00 -0000 > +++ linux-2.6.8-rc3-mm1/arch/i386/lib/spinlock.c 8 Aug 2004 05:39:13 -0000 Why not just make this an assembler source? It contains no real C code. The only downside is that EXPORT_SYMBOL must be moved elsewhere, but on the other hand it would make the assembler code more readable, > +#define PROC(name) \ > + ".align 4\n" \ > + ".globl " #name"\n" \ > + #name":\n" and you could use ENTRY from . Andreas. -- Andreas Schwab, SuSE Labs, schwab@suse.de SuSE Linux AG, Maxfeldstraße 5, 90409 Nürnberg, Germany Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."