Commit 297a9a0f authored by Jeenu Viswambharan's avatar Jeenu Viswambharan
Browse files

SDEI: Fix dispatch bug

The Commit cdb6ac94

 introduced a bug
because of which the SDEI dispatcher wrongly panic when an SDEI event
dispatched earlier as a result of interrupt. This patch fixes the check
for a bound interrupt.

Change-Id: If55c8f0422ff781731248bbbc9c1b59fa0d3c4b0
Signed-off-by: default avatarJeenu Viswambharan <jeenu.viswambharan@arm.com>
parent 9dfd7553
...@@ -505,7 +505,7 @@ int sdei_intr_handler(uint32_t intr_raw, uint32_t flags, void *handle, ...@@ -505,7 +505,7 @@ int sdei_intr_handler(uint32_t intr_raw, uint32_t flags, void *handle,
* the event handling completed, EOI the corresponding * the event handling completed, EOI the corresponding
* interrupt. * interrupt.
*/ */
if ((map->ev_num != SDEI_EVENT_0) && is_map_bound(map)) { if ((map->ev_num != SDEI_EVENT_0) && !is_map_bound(map)) {
ERROR("Invalid SDEI mapping: ev=%u\n", map->ev_num); ERROR("Invalid SDEI mapping: ev=%u\n", map->ev_num);
panic(); panic();
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment