Module Name:    src
Committed By:   martin
Date:           Sat Jan  4 18:37:24 UTC 2025

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

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


To generate a diff of this commit:
cvs rdiff -u -r1.54 -r1.55 src/sys/arch/powerpc/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/powerpc/include/asm.h
diff -u src/sys/arch/powerpc/include/asm.h:1.54 src/sys/arch/powerpc/include/asm.h:1.55
--- src/sys/arch/powerpc/include/asm.h:1.54	Sat Feb 10 08:36:04 2024
+++ src/sys/arch/powerpc/include/asm.h	Sat Jan  4 18:37:23 2025
@@ -1,4 +1,4 @@
-/*	$NetBSD: asm.h,v 1.54 2024/02/10 08:36:04 andvar Exp $	*/
+/*	$NetBSD: asm.h,v 1.55 2025/01/04 18:37:23 martin Exp $	*/
 
 /*
  * Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -155,10 +155,18 @@ y:	.quad	.##y,.TOC.@tocbase,0;	\
 #define	ASMSTR		.asciz
 
 #undef __RCSID
+
 #define RCSID(x)	__RCSID(x)
+#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
 
 #ifdef __ELF__
 # define WEAK_ALIAS(alias,sym)						\

Reply via email to