Re: [PATCH] fix profiling

2008-08-04 Thread Brian Dessent
Brian Dessent wrote: > Since this code is lifted from the BSDs I did check that this change was > made there as well, e.g. > . Actually, I also missed that the above version uses

[PATCH] fix profiling

2008-08-04 Thread Brian Dessent
Long story short: some asm()s have missing volatile modifiers. The mcount() profiling hook is implemented with a short wrapper around the actual mcount function. The wrapper's purpose is to get the pc of the caller as well as the return value of the caller's frame, and pass those on as arguments