Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wraparound of timer #17

Open
claudioscordino opened this issue Oct 2, 2023 · 0 comments
Open

Wraparound of timer #17

claudioscordino opened this issue Oct 2, 2023 · 0 comments

Comments

@claudioscordino
Copy link

There is a wraparound on CLINT_MTIMECMP (function timer_handler() inside 04-TimerInterrupt/timer.c).
If you set the interval to 1000000, the wraparound occurs just after a few minutes of Qemu running.
Once the wraparound has occurred, the timer starts firing at an extremely tiny delay (of course different than the one that was set).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant