Marcel Moolenaar f0556e70bb Make profiling actually work. The gcc compiler emits a call to the
_mcount() stub when profiling is enabled. Emit this code sequence
for assembly routines as welli (MCOUNT definition in <machine/asm.h>.
We do not pass the GOT entry however as the 4th argument, because it's
not used. The _mcount() stub calls __mcount(), which does the actual
work. Define _MCOUNT_DECL to define __mcount. We do not have an
implementation of mcount(), so we define MCOUNT as empty, but have a
weak alias to _mcount() in _mcount.S.
Note that the _mcount() stub in the kernel is slightly different from
the stub in userland. This is because we do not have to worry about
nested routines in the kernel.
2004-08-25 07:42:34 +00:00
..
2003-08-04 05:13:18 +00:00
2004-08-01 18:51:44 +00:00
2004-07-19 05:39:49 +00:00
2003-12-10 22:59:03 +00:00
2004-04-18 07:11:12 +00:00
2004-07-10 22:59:30 +00:00