• Soby Mathew's avatar
    Remove the IMF_READ_INTERRUPT_ID build option · 54718418
    Soby Mathew authored
    The IMF_READ_INTERRUPT_ID build option enables a feature where the interrupt
    ID of the highest priority pending interrupt is passed as a parameter to the
    interrupt handler registered for that type of interrupt. This additional read
    of highest pending interrupt id from GIC is problematic as it is possible that
    the original interrupt may get deasserted and another interrupt of different
    type maybe become the highest pending interrupt. Hence it is safer to prevent
    such behaviour by removing the IMF_READ_INTERRUPT_ID build option.
    
    The `id` parameter of the interrupt handler `interrupt_type_handler_t` is
    now made a reserved parameter with this patch. It will always contain
    INTR_ID_UNAVAILABLE.
    
    Fixes ARM-software/tf-issues#307
    
    Change-Id: I2173aae1dd37edad7ba6bdfb1a99868635fa34de
    54718418
opteed_main.c 13.6 KB