d137b0e8ba
to call mcount(). This is needed because the ``link a6,#0'' insn used trips up gcc's ANSI preprocessor (A # in a function-type macro must be followed by a macro argument). _PROF_PROLOG is also used in the i386 asm.h. Solaris' asm_linkage.h has a MCOUNT macro similar to _PROF_PROLOG except it expands to different code sequences based on whether a function is being compiled with "prof" or "gprof" instrumentation. I also discovered that the m68k ALTENTRY is very different than the implementation used by other NetBSD ports. Usually ALTENTRY simply provides an alternate function entry point. The m68k version takes a second argument and jumps inside the second function when profiling is enabled. The m68k behavior is similar to the ENTRY2 macro found in solaris. Providing ENTRY2 and changing all the code that uses ALTENTRY to use it would be a desirable change. |
||
---|---|---|
.. | ||
ansi.h | ||
aout_machdep.h | ||
asm_single.h | ||
asm.h | ||
cdefs.h | ||
cpu.h | ||
db_machdep.h | ||
endian.h | ||
exec.h | ||
float.h | ||
frame.h | ||
ieeefp.h | ||
kcore.h | ||
limits.h | ||
m68k.h | ||
profile.h | ||
psl.h | ||
ptrace.h | ||
reg.h | ||
setjmp.h | ||
signal.h | ||
stdarg.h | ||
trap.h | ||
types.h | ||
varargs.h |