Module Name: src Committed By: martin Date: Sat Jan 4 19:09:13 UTC 2025
Modified Files: src/sys/arch/ia64/include: asm.h Log Message: PR 58960: ia64/asm.h: Respect NETBSD_REVISIONID. To generate a diff of this commit: cvs rdiff -u -r1.9 -r1.10 src/sys/arch/ia64/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/ia64/include/asm.h diff -u src/sys/arch/ia64/include/asm.h:1.9 src/sys/arch/ia64/include/asm.h:1.10 --- src/sys/arch/ia64/include/asm.h:1.9 Fri Oct 6 11:45:37 2023 +++ src/sys/arch/ia64/include/asm.h Sat Jan 4 19:09:13 2025 @@ -1,4 +1,4 @@ -/* $NetBSD: asm.h,v 1.9 2023/10/06 11:45:37 skrll Exp $ */ +/* $NetBSD: asm.h,v 1.10 2025/01/04 19:09:13 martin Exp $ */ /* - * Copyright (c) 1991,1990,1989,1994,1995,1996 Carnegie Mellon University @@ -203,9 +203,16 @@ label: ASCIZ msg; \ #ifdef __ELF__ +#ifdef _NETBSD_REVISIONID +#define RCSID(x) .pushsection ".ident","MS",@progbits,1; \ + .asciz "$" "NetBSD: " __FILE__ \ + " " _NETBSD_REVISIONID " $"; \ + .popsection +#else #define RCSID(x) .pushsection ".ident","MS",@progbits,1; \ .asciz x; \ .popsection +#endif #else #define RCSID(name) .asciz name #endif @@ -219,7 +226,13 @@ label: ASCIZ msg; \ #define __KERNEL_SECTIONSTRING(_sec, _str) \ .pushsection _sec ; .asciz _str ; .popsection +#ifdef _NETBSD_REVISIONID +#define __KERNEL_RCSID(_n, _s) __KERNEL_SECTIONSTRING(.ident, \ + "$" "NetBSD: " __FILE__ " " \ + _NETBSD_REVISIONID " $") +#else #define __KERNEL_RCSID(_n, _s) __KERNEL_SECTIONSTRING(.ident, _s) +#endif #define __KERNEL_COPYRIGHT(_n, _s) __KERNEL_SECTIONSTRING(.copyright, _s) #ifdef NO_KERNEL_RCSIDS