Skip to content

Commit

Permalink
Merge fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanRoyer committed Nov 21, 2023
1 parent 3aa2ddf commit 5c487ea
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions kernel/interrupts/src/aarch64/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -218,12 +218,13 @@ pub fn init_pl011_rx_interrupt() -> Result<(), &'static str> {
}

pub fn init_pci_interrupts(handler: InterruptHandler) -> Result<(), &'static str> {
let int_ctrl = SystemInterruptController::get();
let int_ctrl = SystemInterruptController::get()
.ok_or("SystemInterruptController was not yet initialized")?;
let dst = Some(cpu::bootstrap_cpu().unwrap());

for int_num in BOARD_CONFIG.pci_intx {
if let Err(existing_handler) = register_interrupt(int_num, handler) {
if handler as *const InterruptHandler != existing_handler {
if handler as InterruptHandler != existing_handler {
return Err("A different interrupt handler has already been setup for that IPI");
}
}
Expand Down

0 comments on commit 5c487ea

Please sign in to comment.