From 83f91db2ccbdf5af0ec984b1f94c83b8a4fbdc1e Mon Sep 17 00:00:00 2001 From: Daniel Johnson Date: Sun, 10 Jul 2011 12:56:08 -0500 Subject: [PATCH] ARM: Fix mp interrupt bug in GIC. Missing "!" made multiprocessor interrupts operate incorrectly. --- src/dev/arm/gic.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dev/arm/gic.cc b/src/dev/arm/gic.cc index d8feec49a..df4edde91 100644 --- a/src/dev/arm/gic.cc +++ b/src/dev/arm/gic.cc @@ -564,7 +564,7 @@ Gic::updateIntState(int hint) */ if ((bits(intEnabled[x], y) & bits(pendingInt[x], y)) && (intPriority[int_nm] < highest_pri)) - if (mp_sys || (cpuTarget[int_nm] & (1 << cpu))) { + if ( (!mp_sys) || (cpuTarget[int_nm] & (1 << cpu))) { highest_pri = intPriority[int_nm]; highest_int = int_nm; } -- 2.30.2