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.
This commit is contained in:
David E. O'Brien 2003-04-26 17:17:45 +00:00
parent 9cd8976ea9
commit ef7b1f2f0f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=114072
2 changed files with 11 additions and 24 deletions

View File

@ -73,30 +73,6 @@
#define CCFSZ 192
#define SPOFF 2047
#define _START_ENTRY \
.text ; \
.p2align 4
/*
* 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(x) \
_START_ENTRY ; \
.globl CNAME(x) ; \
.type CNAME(x),@function ; \
CNAME(x):
#define ENTRY(x) _ENTRY(x)
#define END(x) .size x, . - x
/*
* Kernel RCS ID tag and copyright macros
*/

View File

@ -140,6 +140,17 @@
#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 ; \