Skip to content

Commit

Permalink
Fix bug in plic priority handling, fixes running kernel >= 6.x
Browse files Browse the repository at this point in the history
  • Loading branch information
franzflasch committed Jun 23, 2023
1 parent 766c1ab commit 3dde409
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/peripherals/plic/plic.c
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ uint8_t plic_update(plic_td *plic)
/* qemu also seems to clear pending bit if it was already claimed */
assign_u32_bit(&plic->pending_bits[i], j, 0);
}
else if((plic->priority[irq_id_count] > highest_prio))
else if((plic->priority[irq_id_count] >= highest_prio))
{
/* find irq with highest prio */
highest_prio = plic->priority[irq_id_count];
Expand Down

0 comments on commit 3dde409

Please sign in to comment.