ASM versions of __FBSDID.

This commit is contained in:
David E. O'Brien 2002-03-23 02:01:27 +00:00
parent efbb5e2289
commit 439a4003ab
6 changed files with 50 additions and 0 deletions

View File

@ -648,3 +648,9 @@ label: ASCIZ msg; \
#endif
#endif /* _KERNEL */
#if !defined(lint) && !defined(STRIP_FBSDID)
#define __FBSDID(s) .ident s
#else
#define __FBSDID(s) /* nothing */
#endif /* not lint and not STRIP_FBSDID */

View File

@ -101,6 +101,17 @@
#define RCSID(x) .text; .asciz x
#undef __FBSDID
#if !defined(lint) && !defined(STRIP_FBSDID)
#ifdef __ELF__
#define __FBSDID(s) .ident s
#else
#define __FBSDID(s) .data ; .asciz s ; .previous
#endif
#else
#define __FBSDID(s) /* nothing */
#endif /* not lint and not STRIP_FBSDID */
#ifdef _ARCH_INDIRECT
/*
* Generate code to select between the generic functions and _ARCH_INDIRECT

View File

@ -101,6 +101,17 @@
#define RCSID(x) .text; .asciz x
#undef __FBSDID
#if !defined(lint) && !defined(STRIP_FBSDID)
#ifdef __ELF__
#define __FBSDID(s) .ident s
#else
#define __FBSDID(s) .data ; .asciz s ; .previous
#endif
#else
#define __FBSDID(s) /* nothing */
#endif /* not lint and not STRIP_FBSDID */
#ifdef _ARCH_INDIRECT
/*
* Generate code to select between the generic functions and _ARCH_INDIRECT

View File

@ -206,3 +206,9 @@ label: ASCIZ msg; \
#endif
#endif /* _KERNEL */
#if !defined(lint) && !defined(STRIP_FBSDID)
#define __FBSDID(s) .ident s
#else
#define __FBSDID(s) /* nothing */
#endif /* not lint and not STRIP_FBSDID */

View File

@ -77,6 +77,12 @@
#define RCSID(x) .text; .asciz x
#if !defined(lint) && !defined(STRIP_FBSDID)
#define __FBSDID(s) .ident s
#else
#define __FBSDID(s) /* nothing */
#endif /* not lint and not STRIP_FBSDID */
#ifdef __ELF__
#define WEAK_ALIAS(alias,sym) \
.weak alias; \

View File

@ -97,4 +97,14 @@ CNAME(x):
#define ENTRY(x) _ENTRY(x)
#define END(x) .size x, . - x
/*
* Kernel RCS ID tag and copyright macros
*/
#if !defined(lint) && !defined(STRIP_FBSDID)
#define __FBSDID(s) .ident s
#else
#define __FBSDID(s) /* nothing */
#endif /* not lint and not STRIP_FBSDID */
#endif /* !_MACHINE_ASM_H_ */