From 394c1e1f6e75202b8ae24630be8c6a266156f9d2 Mon Sep 17 00:00:00 2001 From: Liviu Ionescu Date: Thu, 11 May 2017 08:29:04 +0300 Subject: [PATCH] [#44] arm_gic.c: fix BASEPRI behaviour The processor should not process any exception with a priority value greater than or equal to BASEPRI. --- hw/intc/arm_gic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/intc/arm_gic.c b/hw/intc/arm_gic.c index 5595dec6de..3be07b44a0 100644 --- a/hw/intc/arm_gic.c +++ b/hw/intc/arm_gic.c @@ -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;