Module Name:    src
Committed By:   martin
Date:           Sat Jan  4 18:45:23 UTC 2025

Modified Files:
        src/sys/arch/sparc/include: asm.h

Log Message:
PR 58960: sparc/asm.h: Respect NETBSD_REVISIONID.


To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 src/sys/arch/sparc/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/sparc/include/asm.h
diff -u src/sys/arch/sparc/include/asm.h:1.23 src/sys/arch/sparc/include/asm.h:1.24
--- src/sys/arch/sparc/include/asm.h:1.23	Fri Apr 17 14:19:44 2020
+++ src/sys/arch/sparc/include/asm.h	Sat Jan  4 18:45:23 2025
@@ -1,4 +1,4 @@
-/*	$NetBSD: asm.h,v 1.23 2020/04/17 14:19:44 joerg Exp $ */
+/*	$NetBSD: asm.h,v 1.24 2025/01/04 18:45:23 martin Exp $ */
 
 /*
  * Copyright (c) 1994 Allen Briggs
@@ -157,9 +157,16 @@
 #define ASMSTR			.asciz
 
 #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

Reply via email to