lkml.org 
[lkml]   [2004]   [Nov]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: What exactly is __ALIGN_STR in pnpbios/bioscalls.c for?
From
Date
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/

\
 
 \ /
  Last update: 2005-03-22 14:08    [W:0.120 / U:0.460 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site