diff options
Diffstat (limited to 'sys/sparc64/include/asm.h')
-rw-r--r-- | sys/sparc64/include/asm.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sys/sparc64/include/asm.h b/sys/sparc64/include/asm.h index dea06c5..69a53be 100644 --- a/sys/sparc64/include/asm.h +++ b/sys/sparc64/include/asm.h @@ -103,6 +103,16 @@ CNAME(x): #define END(x) .size x, . - x /* + * WEAK_REFERENCE(): create a weak reference alias from sym. + * The macro is not a general asm macro that takes arbitrary names, + * but one that takes only C names. It does the non-null name + * translation inside the macro. + */ +#define WEAK_REFERENCE(sym, alias) \ + .weak CNAME(alias); \ + .equ CNAME(alias),CNAME(sym) + +/* * Kernel RCS ID tag and copyright macros */ |