diff options
author | Mike Frysinger <vapier@gentoo.org> | 2008-02-05 00:26:54 (GMT) |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2008-02-05 00:26:54 (GMT) |
commit | 4087bc88cebec75c432a7fe9f6afb545b0919831 (patch) | |
tree | 2f8ed0477489a2bbe2d534898a8c486d67d7b595 /common/environment.c | |
parent | b45264ee85cbd92020640a32e02fb434fd557108 (diff) | |
download | u-boot-fsl-qoriq-4087bc88cebec75c432a7fe9f6afb545b0919831.tar.xz |
fix building on Blackfin as the assembler supports the .set syntax, not the = syntax, for assigning symbols
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'common/environment.c')
-rw-r--r-- | common/environment.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/common/environment.c b/common/environment.c index 24257f7..3b9914f 100644 --- a/common/environment.c +++ b/common/environment.c @@ -70,11 +70,16 @@ /* * Macros to generate global absolutes. */ +#if defined(__bfin__) +# define GEN_SET_VALUE(name, value) asm (".set " GEN_SYMNAME(name) ", " GEN_VALUE(value)) +#else +# define GEN_SET_VALUE(name, value) asm (GEN_SYMNAME(name) " = " GEN_VALUE(value)) +#endif #define GEN_SYMNAME(str) SYM_CHAR #str #define GEN_VALUE(str) #str #define GEN_ABS(name, value) \ asm (".globl " GEN_SYMNAME(name)); \ - asm (GEN_SYMNAME(name) " = " GEN_VALUE(value)) + GEN_SET_VALUE(name, value) /* * Macros to transform values |