summaryrefslogtreecommitdiffstats
path: root/sys/amd64/include/asmacros.h
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>2006-10-28 06:04:29 +0000
committerbde <bde@FreeBSD.org>2006-10-28 06:04:29 +0000
commit4e6ad1ffa202dce5e7a8cc1c66b48f4d678d639c (patch)
tree12834a3d76512711beec1b8e76397f183472976e /sys/amd64/include/asmacros.h
parent8ca206e26c2343bd1ddbcb0313abb6e7eadf1682 (diff)
downloadFreeBSD-src-4e6ad1ffa202dce5e7a8cc1c66b48f4d678d639c.zip
FreeBSD-src-4e6ad1ffa202dce5e7a8cc1c66b48f4d678d639c.tar.gz
Removed all traces of HIDENAME() in amd64 and i386 kernel code. Using
this used to be slightly cleaner than using ifdefs in a few places to support both a.out and elf, but using it now just causes messes and unportabilities. It seems to be impossible to implement the elf HIDENAME() portably in cpp (since token pasting of "." and <name> is invalid). */prof_machdep.c: - Removed all uses of CNAME(). CNAME() is easy enough to use in pure asm code, but using it in inline asm requires messy quoting. The core pure asm code has been hacked on more and all uses of CNAME() in it have already gone away. Just assume the elf convention here too. - Removed now-uneeded include of <machine/asmacros.h>. - Removed the workaround for a namespace conflict with this include.
Diffstat (limited to 'sys/amd64/include/asmacros.h')
-rw-r--r--sys/amd64/include/asmacros.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/amd64/include/asmacros.h b/sys/amd64/include/asmacros.h
index 81fed27..84b1d60 100644
--- a/sys/amd64/include/asmacros.h
+++ b/sys/amd64/include/asmacros.h
@@ -37,14 +37,12 @@
/* XXX too much duplication in various asm*.h's. */
/*
- * CNAME and HIDENAME manage the relationship between symbol names in C
+ * CNAME is used to manage the relationship between symbol names in C
* and the equivalent assembly language names. CNAME is given a name as
* it would be used in a C program. It expands to the equivalent assembly
- * language name. HIDENAME is given an assembly-language name, and expands
- * to a possibly-modified form that will be invisible to C programs.
+ * language name.
*/
#define CNAME(csym) csym
-#define HIDENAME(asmsym) .asmsym
#define ALIGN_DATA .p2align 3 /* 8 byte alignment, zero filled */
#ifdef GPROF
@@ -109,7 +107,7 @@
#define MCOUNT call __mcount
#define MCOUNT_LABEL(name) GEN_ENTRY(name) ; nop ; ALIGN_TEXT
#ifdef GUPROF
-#define MEXITCOUNT call HIDENAME(mexitcount)
+#define MEXITCOUNT call .mexitcount
#define ret MEXITCOUNT ; NON_GPROF_RET
#else
#define MEXITCOUNT
OpenPOWER on IntegriCloud