diff options
author | Thomas Graichen <graichen@cvs.openbsd.org> | 1997-06-10 14:19:04 +0000 |
---|---|---|
committer | Thomas Graichen <graichen@cvs.openbsd.org> | 1997-06-10 14:19:04 +0000 |
commit | d78c3e0c4b3482bcc998de4d120c74e31c5728c5 (patch) | |
tree | 754f54a7fa91cec3cf438faf03da90ac55300610 /sys/arch/pmax/include/cdefs.h | |
parent | c1f2151f781958b5795a8828cd42b912f0e0f197 (diff) |
update the pmax specific stuff to NetBSD-current as of about 970608 - some
cosmetic things will follow together with an update to an exact NETBSD_CU-
RRENT_xxxxxx level
Diffstat (limited to 'sys/arch/pmax/include/cdefs.h')
-rw-r--r-- | sys/arch/pmax/include/cdefs.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/sys/arch/pmax/include/cdefs.h b/sys/arch/pmax/include/cdefs.h index bc0383e8f7d..6812d5fcc4a 100644 --- a/sys/arch/pmax/include/cdefs.h +++ b/sys/arch/pmax/include/cdefs.h @@ -35,4 +35,25 @@ #define __indr_references(sym,msg) /* nothing */ #define __warn_references(sym,msg) /* nothing */ +/* Kernel-only .sections for kernel copyright */ +#ifdef _KERNEL + +#ifdef __STDC__ +#define __KERNEL_SECTIONSTRING(_sec, _str) \ + __asm__(".section " #_sec " ; .asciz \"" _str "\" ; .text") +#else +#define __KERNEL_SECTIONSTRING(_sec, _str) \ + __asm__(".section _sec ; .asciz _str ; .text") +#endif + +#define __KERNEL_RCSID(_n, _s) __KERNEL_SECTIONSTRING(.ident, _s) +#define __KERNEL_COPYRIGHT(_n, _s) __KERNEL_SECTIONSTRING(.copyright, _s) + +#ifdef NO_KERNEL_RCSIDS +#undef __KERNEL_RCSID +#define __KERNEL_RCSID(_n, _s) /* nothing */ +#endif + +#endif /* _KERNEL */ + #endif /* !_MACHINE_CDEFS_H_ */ |