mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-15 08:30:02 +00:00
kernel: irq: don't disable interrupts when claiming irq
When claiming an IRQ, we used to disable interrupts. This is unnecessary, as interrupts are already disabled when running in kernel mode. Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
parent
6e290500db
commit
6987df997d
1 changed files with 0 additions and 2 deletions
|
|
@ -53,7 +53,6 @@ pub fn interrupt_claim(
|
|||
// Unsafe is required since we're accessing a static mut array.
|
||||
// However, we disable interrupts to prevent contention on this array.
|
||||
unsafe {
|
||||
arch::irq::disable_all_irqs();
|
||||
let result = if irq > IRQ_HANDLERS.len() {
|
||||
Err(xous_kernel::Error::InterruptNotFound)
|
||||
} else if IRQ_HANDLERS[irq].is_some() {
|
||||
|
|
@ -63,7 +62,6 @@ pub fn interrupt_claim(
|
|||
arch::irq::enable_irq(irq);
|
||||
Ok(())
|
||||
};
|
||||
arch::irq::enable_all_irqs();
|
||||
result
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue