Skip to content

Commit

Permalink
fix(verbose): improve error handling for interrupt reservation
Browse files Browse the repository at this point in the history
Signed-off-by: Diogo Costa <[email protected]>
  • Loading branch information
Diogo21Costa committed Oct 9, 2023
1 parent 1a898b4 commit 878ad2b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/arch/armv8/gic.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ void gicd_init()

if(!interrupts_reserve(platform.arch.gic.maintenance_id,
gic_maintenance_handler)) {
ERROR("Failed to assign GIC maintenance interrupt");
ERROR("Failed to reserve GIC maintenance interrupt");
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/arch/riscv/iommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ void rv_iommu_init(void)

// Allocate IRQ for FQ
if(!interrupts_reserve(platform.arch.iommu.fq_irq_id, rv_iommu_fq_irq_handler)) {
ERROR("Failed to assign IOMMU FQ interrupt");
ERROR("Failed to reserve IOMMU FQ interrupt");
}

interrupts_cpu_enable(platform.arch.iommu.fq_irq_id, true);
Expand Down
2 changes: 1 addition & 1 deletion src/arch/riscv/sbi.c
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,6 @@ void sbi_init()
}

if(!interrupts_reserve(TIMR_INT_ID, sbi_timer_irq_handler)) {
ERROR("Failed to assign SBI TIMR_INT_ID interrupt");
ERROR("Failed to reserve SBI TIMR_INT_ID interrupt");
}
}
2 changes: 1 addition & 1 deletion src/core/interrupts.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ inline void interrupts_init()

if (cpu()->id == CPU_MASTER) {
if(!interrupts_reserve(IPI_CPU_MSG, cpu_msg_handler)) {
ERROR("Failed to assign IPI_CPU_MSG interrupt");
ERROR("Failed to reserve IPI_CPU_MSG interrupt");
}
}

Expand Down

0 comments on commit 878ad2b

Please sign in to comment.