Module Name: src
Committed By: matt
Date: Thu Jul 11 19:50:55 UTC 2013
Modified Files:
src/sys/arch/alpha/include: asm.h
Log Message:
Add a RCSID macro for non _KERNEL use
To generate a diff of this commit:
cvs rdiff -u -r1.33 -r1.34 src/sys/arch/alpha/include/asm.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/alpha/include/asm.h
diff -u src/sys/arch/alpha/include/asm.h:1.33 src/sys/arch/alpha/include/asm.h:1.34
--- src/sys/arch/alpha/include/asm.h:1.33 Mon Feb 6 02:14:13 2012
+++ src/sys/arch/alpha/include/asm.h Thu Jul 11 19:50:55 2013
@@ -1,4 +1,4 @@
-/* $NetBSD: asm.h,v 1.33 2012/02/06 02:14:13 matt Exp $ */
+/* $NetBSD: asm.h,v 1.34 2013/07/11 19:50:55 matt Exp $ */
/*
* Copyright (c) 1991,1990,1989,1994,1995,1996 Carnegie Mellon University
@@ -642,14 +642,13 @@ label: ASCIZ msg; \
/*
* Kernel RCS ID tag and copyright macros
*/
+#define __SECTIONSTRING(_sec, _str) \
+ .pushsection _sec ; .asciz _str ; .popsection
#ifdef _KERNEL
-#define __KERNEL_SECTIONSTRING(_sec, _str) \
- .pushsection _sec ; .asciz _str ; .popsection
-
-#define __KERNEL_RCSID(_n, _s) __KERNEL_SECTIONSTRING(.ident, _s)
-#define __KERNEL_COPYRIGHT(_n, _s) __KERNEL_SECTIONSTRING(.copyright, _s)
+#define __KERNEL_RCSID(_n, _s) __SECTIONSTRING(.ident, _s)
+#define __KERNEL_COPYRIGHT(_n, _s) __SECTIONSTRING(.copyright, _s)
#ifdef NO_KERNEL_RCSIDS
#undef __KERNEL_RCSID
@@ -697,6 +696,8 @@ IMPORT(cpu_info_primary, CPU_INFO_SIZEOF
#define GET_IDLE_PCB(reg) \
lda reg, cpu_info_primary ; \
ldq reg, CPU_INFO_IDLE_PCB_PADDR(reg)
-#endif
+#endif /* MULTIPROCESSOR */
+#else
+#define RCSID(_s) __SECTIONSTRING(.ident, _s)
#endif /* _KERNEL */