Module Name:    src
Committed By:   skrll
Date:           Sat Jan  4 21:02:01 UTC 2025

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

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


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/sys/arch/riscv/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/riscv/include/asm.h
diff -u src/sys/arch/riscv/include/asm.h:1.8 src/sys/arch/riscv/include/asm.h:1.9
--- src/sys/arch/riscv/include/asm.h:1.8	Sun Aug  4 08:16:25 2024
+++ src/sys/arch/riscv/include/asm.h	Sat Jan  4 21:02:01 2025
@@ -1,4 +1,4 @@
-/*	$NetBSD: asm.h,v 1.8 2024/08/04 08:16:25 skrll Exp $	*/
+/*	$NetBSD: asm.h,v 1.9 2025/01/04 21:02:01 skrll Exp $	*/
 
 /*-
  * Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -121,9 +121,17 @@
 	.asciiz str;			\
 	.align	3
 
+#ifdef _NETBSD_REVISIONID
 #define __RCSID(x)	.pushsection ".ident","MS",@progbits,1;		\
+			.asciz "$" "NetBSD: " __FILE__			\
+			    " " _NETBSD_REVISIONID " $";		\
 			.asciz x;					\
 			.popsection
+#else
+#define __RCSID(x)	.pushsection ".ident","MS",@progbits,1;		\
+			.asciz x;					\
+			.popsection
+#endif
 #define RCSID(name)	__RCSID(name)
 
 #if defined(_LP64)

Reply via email to