NetBSD/sys/arch/m68k
jtc d137b0e8ba Added new macro _PROF_PROLOG which contains the code sequence needed
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.
1996-09-24 00:05:55 +00:00
..
060sp Now that our as pretends to understand the M68060 cpu, use -m68060 instead 1996-05-20 13:31:40 +00:00
conf Pull in the COMPAT_M68K4K stuff when appropriate. 1996-09-10 22:07:10 +00:00
fpe Fix "might be used uninitialized" warnings. 1996-05-15 07:31:55 +00:00
fpsp
include Added new macro _PROF_PROLOG which contains the code sequence needed 1996-09-24 00:05:55 +00:00
m68k Provide alternate memmove() entrypoint for memcpy(). This will help 1996-07-20 01:53:42 +00:00