summaryrefslogtreecommitdiffstats
path: root/sys/powerpc/include
diff options
context:
space:
mode:
authorandreast <andreast@FreeBSD.org>2012-02-05 20:04:43 +0000
committerandreast <andreast@FreeBSD.org>2012-02-05 20:04:43 +0000
commitbf13243b5345c5abdffc9c8dc62eff84ee0de428 (patch)
tree67cc4601a5bcc521ca92310b4c26b139b0f62239 /sys/powerpc/include
parentac5dbeb938d63729dd227236f6de4aadd73c0b41 (diff)
downloadFreeBSD-src-bf13243b5345c5abdffc9c8dc62eff84ee0de428.zip
FreeBSD-src-bf13243b5345c5abdffc9c8dc62eff84ee0de428.tar.gz
Replace the assembler macro WEAK_ALIAS with a new macro WEAK_REFERENCE which
has the same API as __weak_reference(). Give 'x' in SYS.h a more meaningful name. Tested on 32- and 64-bit PowerMac. Reviewed by: bde
Diffstat (limited to 'sys/powerpc/include')
-rw-r--r--sys/powerpc/include/asm.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/powerpc/include/asm.h b/sys/powerpc/include/asm.h
index bfc939b..5f8b779 100644
--- a/sys/powerpc/include/asm.h
+++ b/sys/powerpc/include/asm.h
@@ -116,9 +116,9 @@
#define __FBSDID(s) /* nothing */
#endif /* not lint and not STRIP_FBSDID */
-#define WEAK_ALIAS(alias,sym) \
+#define WEAK_REFERENCE(sym, alias) \
.weak alias; \
- alias = sym
+ .equ alias,sym
#ifdef __STDC__
#define WARN_REFERENCES(_sym,_msg) \
OpenPOWER on IntegriCloud