-
-
Notifications
You must be signed in to change notification settings - Fork 21
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
hal-x86_64: want API for local APIC timer in oneshot mode #498
Labels
arch/x86_64
area/hal
Related to the hardware abstraction layer
kind/enhancement
New feature or request
Comments
hawkw
added a commit
that referenced
this issue
Jan 5, 2025
This way, we don't re-calibrate every time we call `start_periodic_timer`. This will also be used when adding the one-shot timer mode (see #498).
hawkw
added a commit
that referenced
this issue
Jan 5, 2025
This is a rudimentary first pass on #498 adding a method to `LocalApic` to trigger a single oneshot timer interrupt after a given duration. It would be nice to also have a full-on blocking sleep method, like we do for the PIT.
hawkw
added a commit
that referenced
this issue
Jan 5, 2025
This way, we don't re-calibrate every time we call `start_periodic_timer`. This will also be used when adding the one-shot timer mode (see #498).
hawkw
added a commit
that referenced
this issue
Jan 5, 2025
This is a rudimentary first pass on #498 adding a method to `LocalApic` to trigger a single oneshot timer interrupt after a given duration. It would be nice to also have a full-on blocking sleep method, like we do for the PIT.
hawkw
added a commit
that referenced
this issue
Jan 5, 2025
This way, we don't re-calibrate every time we call `start_periodic_timer`. This will also be used when adding the one-shot timer mode (see #498).
hawkw
added a commit
that referenced
this issue
Jan 5, 2025
This is a rudimentary first pass on #498 adding a method to `LocalApic` to trigger a single oneshot timer interrupt after a given duration. It would be nice to also have a full-on blocking sleep method, like we do for the PIT.
hawkw
added a commit
that referenced
this issue
Jan 11, 2025
This way, we don't re-calibrate every time we call `start_periodic_timer`. This will also be used when adding the one-shot timer mode (see #498).
hawkw
added a commit
that referenced
this issue
Jan 11, 2025
This is a rudimentary first pass on #498 adding a method to `LocalApic` to trigger a single oneshot timer interrupt after a given duration. It would be nice to also have a full-on blocking sleep method, like we do for the PIT.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
arch/x86_64
area/hal
Related to the hardware abstraction layer
kind/enhancement
New feature or request
currently, the x86_64 HAL has a nice method for configuring the local APIC timer as a periodic timer, but there's no corresponding API for using it as a one-shot timer.
we use the oneshot timer internally for calibrating the local APIC timer frequency, here:
mycelium/hal-x86_64/src/interrupt/apic/local.rs
Lines 164 to 188 in b0d028f
but we don't provide an interface for it. we should probably fix that.
The text was updated successfully, but these errors were encountered: