Messages in this thread | | | Subject | Re: What exactly is __ALIGN_STR in pnpbios/bioscalls.c for? | From | Andreas Schwab <> | Date | Sun, 21 Nov 2004 21:29:32 +0100 |
| |
Adrian Bunk <bunk@stusta.de> writes:
> include/linux/linkage.h in kernel 2.6 includes #define's for __ALIGN and > __ALIGN_STR. In include/asm-i386/linkage.h, their values are changed > #ifdef CONFIG_X86_ALIGNMENT_16. > > It isn't obvious what exacly CONFIG_X86_ALIGNMENT_16 is for (I've heard > more than one opinion), and since the __ALIGN_STR usage in > drivers/pnp/pnpbios/bioscalls.c is the only non-m68k usage of one of > these two #define's I wonder whether you might be able to enlighten me > what CONFIG_X86_ALIGNMENT_16 exactly is for?
It's for aligning function entries to a 16 byte boundary instead of only 4 bytes, used together with -malign-functions. See also the ENTRY macro. Note that the default value of __ALIGN is actually useless for anything but x86 and x86-64.
Andreas.
-- Andreas Schwab, SuSE Labs, schwab@suse.de SuSE Linux Products GmbH, 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." - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |