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

switch to private timer for system time and Tasking System #1

Open
wants to merge 1 commit into
base: amp
Choose a base branch
from

Conversation

zechenturm
Copy link

Switch the Kernel (and consequently the tasking system) to use the CPU's private timer rather than the global timer, since the global timer is shared between Linux and deep in an AMP context.
Note that Linux currently configures the Zynq to run at 333MHz rather than the previous 667MHz, hence the change to clockFrequency.

Unlike the global timer, which is a 64Bit incrementing timer, the private timer is only 32Bit and decrementing.
This means that it currently overflows every ~12s, creating the needs to store a 64Bit timestamp in a dedicated variable that needs to be updated periodically.

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

Successfully merging this pull request may close these issues.

1 participant