|
|
|
|
|
by sneela
526 days ago
|
|
This is a wonderful write-up and a very enjoyable read. Although my knowledge about systems programming on ARM is limited, I know that it isn't easy to read hardware-based time counters; at the very least, it's not as simple as the x86 rdtsc [1]. This is probably why the author writes: > This code is more complicated than what I expected to see. I was thinking it would just be a simple register read. Instead, it has to write a 1 to the register, and then delay for a while, and then read back the same register. There was also a very noticeable FIXME in the comment for the function, which definitely raised a red flag in my mind. Regardless, this was a very nice read and I'm glad they got down to the issue and the problem fixed. [1]: https://www.felixcloutier.com/x86/rdtsc. |
|
But yeah, nice writeup of the kinds of problem you can run into in embedded systems programming.