littlekernel / lk

LK embedded kernel
MIT License
3.15k stars 621 forks source link

[arm64] enable cycle counter #158

Open raphui opened 8 years ago

raphui commented 8 years ago

Hello,

Cycle counter is not enable on arm64 arch, so the command line "bench" always return "took 0 cycles".

This patch enable cycle counter, let me know if it's ok or not.

raphui commented 8 years ago

Yes, you're right, I will do it and send a v2 pull request when I am back from holiday.

travisg commented 7 years ago

I did another implementation over in magenta that works on all processors. I'll try to merge that back soon.