diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2020-05-16 17:11:15 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2020-05-16 17:11:15 +0000 |
commit | 5df2a273475dc953afcc4b50947f3fa052bc5c9e (patch) | |
tree | a3b6e6730b304127546e159866888b7370932d27 /sys/arch/powerpc64/include/cdefs.h | |
parent | 154cd99aae028cd6a36f4d9937092bb2a88b5b6a (diff) |
Planting the first seed for OpenBSD/powerpc64.
Diffstat (limited to 'sys/arch/powerpc64/include/cdefs.h')
-rw-r--r-- | sys/arch/powerpc64/include/cdefs.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/sys/arch/powerpc64/include/cdefs.h b/sys/arch/powerpc64/include/cdefs.h new file mode 100644 index 00000000000..395f533f88f --- /dev/null +++ b/sys/arch/powerpc64/include/cdefs.h @@ -0,0 +1,21 @@ +/* $OpenBSD: cdefs.h,v 1.1 2020/05/16 17:11:14 kettenis Exp $ */ + +/* + * Written by J.T. Conklin <jtc@wimsey.com> 01/17/95. + * Public domain. + */ + +#ifndef _MACHINE_CDEFS_H_ +#define _MACHINE_CDEFS_H_ + +#define __strong_alias(alias,sym) \ + __asm__(".global " __STRING(alias) " ; " __STRING(alias) \ + " = " __STRING(sym)) +#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_ */ |