From d78c3e0c4b3482bcc998de4d120c74e31c5728c5 Mon Sep 17 00:00:00 2001 From: Thomas Graichen Date: Tue, 10 Jun 1997 14:19:04 +0000 Subject: 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 --- sys/arch/pmax/include/cdefs.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'sys/arch/pmax/include/cdefs.h') 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_ */ -- cgit v1.2.3