mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-24 21:54:01 +00:00
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>
This commit is contained in:
parent
b45264ee85
commit
4087bc88ce
1 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue