PATCH: get_cyclecount() on ARMv6 and better

Mark R V Murray mark at grondar.org
Sun Aug 4 07:44:10 UTC 2013


On 3 Aug 2013, at 23:15, Aleksandr Rybalko <ray at freebsd.org> wrote:
> Another potential useful thing, not to close it under #ifdef ARMv6, but
> check ARM processor Feature registers.
> MRC p15, 0, <Rt>, c0, c1, 2; Read Debug Feature Register 0 
> Here is [27:24] bits - Performance monitor model, zero - lack of PMU.
> But unfortunately, Cortex-A8 have no such bits, but have CCNT reg. :)

Thanks for the hint, but it soinnds like I'm going to need a bit more
expert knowledge here.

So what will work on all ARMs, then?

M
-- 
Mark R V Murray

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 353 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freebsd.org/pipermail/freebsd-arm/attachments/20130804/2aefc719/attachment.sig>


More information about the freebsd-arm mailing list