Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/alpha/include Add a RCSID macro for non _KERNEL use
details: https://anonhg.NetBSD.org/src/rev/f9babc2e4b0c
branches: trunk
changeset: 787901:f9babc2e4b0c
user: matt <matt%NetBSD.org@localhost>
date: Thu Jul 11 19:50:55 2013 +0000
description:
Add a RCSID macro for non _KERNEL use
diffstat:
sys/arch/alpha/include/asm.h | 15 ++++++++-------
1 files changed, 8 insertions(+), 7 deletions(-)
diffs (38 lines):
diff -r 9587beaa0741 -r f9babc2e4b0c sys/arch/alpha/include/asm.h
--- a/sys/arch/alpha/include/asm.h Thu Jul 11 19:46:44 2013 +0000
+++ b/sys/arch/alpha/include/asm.h Thu Jul 11 19:50:55 2013 +0000
@@ -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 @@
/*
* 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 @@
#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 */
Home |
Main Index |
Thread Index |
Old Index