Skip to content
Snippets Groups Projects
Commit 4087bc88 authored by Mike Frysinger's avatar Mike Frysinger
Browse files

fix building on Blackfin as the assembler supports the .set syntax, not the =...

fix building on Blackfin as the assembler supports the .set syntax, not the = syntax, for assigning symbols

Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
parent b45264ee
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment