[U-Boot] [PATCH 1/2] nds32: add linkage support

Macpaul Lin macpaul at gmail.com
Thu Dec 1 03:29:02 CET 2011


Hi Mike,

2011/12/1 Mike Frysinger <vapier at gentoo.org>

> On Wednesday 30 November 2011 03:06:42 Macpaul Lin wrote:
> > Add linkage support.
>
> let's add this to our linux/linkage.h:
> #ifndef __ALIGN
> #define __ALIGN     .align 4
> #define __ALIGN_STR ".align 4"
> #endif
>
> i think most arches will be this way
> -mike
>

I'm not sure for this because I've found there exists different
configurations for other
architectures in Linux.
For example,
../../../arch/arm/include/asm/linkage.h:4:#define __ALIGN .align 0
../../../arch/arm/include/asm/linkage.h:5:#define __ALIGN_STR ".align 0"
../../../arch/avr32/include/asm/linkage.h:4:#define __ALIGN .balign 2
../../../arch/avr32/include/asm/linkage.h:5:#define __ALIGN_STR ".balign 2"
../../../arch/score/include/asm/linkage.h:4:#define __ALIGN .align 2
../../../arch/score/include/asm/linkage.h:5:#define __ALIGN_STR ".align 2"


-- 
Best regards,
Macpaul Lin


More information about the U-Boot mailing list