Skip to content
This repository has been archived by the owner on Nov 5, 2019. It is now read-only.

Commit

Permalink
[#44] arm_gic.c: fix BASEPRI behaviour
Browse files Browse the repository at this point in the history
The processor should not process any exception with a priority value greater than or equal to BASEPRI.
  • Loading branch information
ilg-ul committed May 11, 2017
1 parent 26b122c commit 394c1e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hw/intc/arm_gic.c
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ void gic_update(GICState *s)
#if defined(CONFIG_GNU_ARM_ECLIPSE)
int prio = GIC_GET_PRIORITY(irq, cpu);
uint32_t basepri = *(s->basepri_ptr);
if ((basepri == 0) || (prio <= basepri)) {
if ((basepri == 0) || (prio < basepri)) {
if (prio < best_prio) {
best_prio = prio;
best_irq = irq;
Expand Down

0 comments on commit 394c1e1

Please sign in to comment.