PATCH: get_cyclecount() on ARMv6 and better

Warner Losh imp at bsdimp.com
Sat Aug 3 18:01:25 UTC 2013


On Aug 3, 2013, at 6:26 AM, Mark R V Murray wrote:

> 
> On 3 Aug 2013, at 12:51, Aleksandr Rybalko <ray at freebsd.org> wrote:
>> Hi Mark!
>> 
>> Do we setup Performance Monitor Control Register before use that
>> counter?
> 
> I've read up on PNMC register now, an looked for it in the code,
> and unless it is very well hidden, then NO, we don't set it up.
> 
> I've read now what I need to do; where is the best place do do it?
> I suspect it should be in start-up code right when the ARM is starting
> up; is that a good guess?

I'd make a timecounter for this, and put that in its initialization code.

Warner


More information about the freebsd-arm mailing list