Fix compilation issue for IMF_READ_INTERRUPT_ID build flag
authorSoby Mathew <soby.mathew@arm.com>
Wed, 28 May 2014 16:14:36 +0000 (17:14 +0100)
committerSoby Mathew <soby.mathew@arm.com>
Thu, 29 May 2014 15:54:10 +0000 (16:54 +0100)
This patch fixes the compilation issue for trusted firmware when the
IMF_READ_INTERRUPT_ID is enabled.

Change-Id: I94ab613b9bc96a7c1935796c674dc42246aaafee

bl31/aarch64/runtime_exceptions.S
services/spd/tspd/tspd_main.c

index 97ca956df2c5822907146c388702435ed993422f..a11cd71f1f8e6ac3146cf410a000a3fa2472e62e 100644 (file)
         * Read the id of the highest priority pending interrupt. If
         * no interrupt is asserted then return to where we came from.
         */
+       mov     x19,  #INTR_ID_UNAVAILABLE
        bl      plat_ic_get_pending_interrupt_id
-       cmp     x0, #INTR_ID_UNAVAILABLE
+       cmp     x19, x0
        b.eq    interrupt_exit_\label
 #endif
 
index 4477fd78b37c9e2d98a6412654b216e263993e0c..1a6913a57a9770a9a94c731eb3f5c5c373510e6a 100644 (file)
@@ -90,7 +90,7 @@ static uint64_t tspd_sel1_interrupt_handler(uint32_t id,
 
 #if IMF_READ_INTERRUPT_ID
        /* Check the security status of the interrupt */
-       assert(ic_get_interrupt_group(id) == SECURE);
+       assert(plat_ic_get_interrupt_type(id) == INTR_TYPE_S_EL1);
 #endif
 
        /* Sanity check the pointer to this cpu's context */