summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/arch/sparc64/include/cdefs.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/arch/sparc64/include/cdefs.h b/sys/arch/sparc64/include/cdefs.h
index d154e140584..5bc7bea1144 100644
--- a/sys/arch/sparc64/include/cdefs.h
+++ b/sys/arch/sparc64/include/cdefs.h
@@ -1,9 +1,13 @@
-/* $OpenBSD: cdefs.h,v 1.1 2001/08/18 04:16:40 jason Exp $ */
+/* $OpenBSD: cdefs.h,v 1.2 2001/08/23 16:10:46 art Exp $ */
/* $NetBSD: cdefs.h,v 1.3 1999/03/20 01:40:26 thorpej Exp $ */
#ifndef _MACHINE_CDEFS_H_
#define _MACHINE_CDEFS_H_
-/* No arch-specific cdefs. */
+#define __weak_alias(alias,sym) \
+ __asm__(".weak " __STRING(alias) " ; " __STRING(alias) " = " __STRING(sym))
+#define __warn_references(sym,msg) \
+ __asm__(".section .gnu.warning." __STRING(sym) " ; .ascii \"" msg "\" ; .text")
+
#endif /* !_MACHINE_CDEFS_H_ */