You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(possibly enable_irq and disable_irq should be renamed to enable_all/disable_all or something — that naming incorrectly implies that they enable/disable a specific IRQ...)
The text was updated successfully, but these errors were encountered:
we might actually want the actual implementation of this to be in the Vector trait, with a ref to the interrupt controller; depending on the interrupt, the way it is masked might differ, for example, on x86, it could be a CPU interrupt, a PIC interrupt, or an IOAPIC interrupt...
this will probably help with IOAPIC (#28) and PIC drivers.
probably something like the existing
Control::enable_irq
/disable_irq
, but for a specific vectormycelium/hal-core/src/interrupt.rs
Lines 10 to 14 in ff48f57
we can then use this to implement a drop guard API, like
enter_critical
:mycelium/hal-core/src/interrupt.rs
Lines 34 to 39 in ff48f57
(possibly
enable_irq
anddisable_irq
should be renamed toenable_all
/disable_all
or something — that naming incorrectly implies that they enable/disable a specific IRQ...)The text was updated successfully, but these errors were encountered: