diff options
author | obrien <obrien@FreeBSD.org> | 2003-04-26 17:17:45 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2003-04-26 17:17:45 +0000 |
commit | fd579503718ee8a5d32b721d8899f1de90592b4c (patch) | |
tree | 0e7d096fad6243f6b37d2796742da48f41edb30e /sys/sparc64/include/asmacros.h | |
parent | 0934a65cb49b3f713cd38ee2eba592b1163583f1 (diff) | |
download | FreeBSD-src-fd579503718ee8a5d32b721d8899f1de90592b4c.zip FreeBSD-src-fd579503718ee8a5d32b721d8899f1de90592b4c.tar.gz |
The ENTRY bits were in two places. Remove the one not used (asm.h), but
presurve the nice comment by adding it to asmacros.h.
Diffstat (limited to 'sys/sparc64/include/asmacros.h')
-rw-r--r-- | sys/sparc64/include/asmacros.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sys/sparc64/include/asmacros.h b/sys/sparc64/include/asmacros.h index 9e92645..b81e2f6 100644 --- a/sys/sparc64/include/asmacros.h +++ b/sys/sparc64/include/asmacros.h @@ -140,6 +140,17 @@ name: #define EMPTY +/* + * Define a function entry point. + * + * The compiler produces #function for the .type pseudo-op, but the '#' + * character has special meaning in cpp macros, so we use @function like + * other architectures. The assembler seems to accept both. + * The assembler also accepts a .proc pseudo-op, which is used by the + * peep hole optimizer, whose argument is the type code of the return + * value. Since this is difficult to predict and its expected that + * assembler code is already optimized, we leave it out. + */ #define ENTRY(name) \ .text ; \ _ALIGN_TEXT ; \ |