Module Name:    src
Committed By:   martin
Date:           Sat Jan  4 19:02:52 UTC 2025

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

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


To generate a diff of this commit:
cvs rdiff -u -r1.28 -r1.29 src/sys/arch/vax/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/vax/include/asm.h
diff -u src/sys/arch/vax/include/asm.h:1.28 src/sys/arch/vax/include/asm.h:1.29
--- src/sys/arch/vax/include/asm.h:1.28	Fri Apr 17 14:19:44 2020
+++ src/sys/arch/vax/include/asm.h	Sat Jan  4 19:02:51 2025
@@ -1,4 +1,4 @@
-/*	$NetBSD: asm.h,v 1.28 2020/04/17 14:19:44 joerg Exp $ */
+/*	$NetBSD: asm.h,v 1.29 2025/01/04 19:02:51 martin Exp $ */
 /*
  * Copyright (c) 1982, 1993
  *	The Regents of the University of California.  All rights reserved.
@@ -79,9 +79,16 @@
 #define END(x)			.size _C_LABEL(x),.-_C_LABEL(x)
 
 #define ALTENTRY(x)		.globl _C_LABEL(x); _C_LABEL(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 NO_KERNEL_RCSIDS
 #define __KERNEL_RCSID(_n, _s)  /* nothing */

Reply via email to