mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-19 02:54:24 +00:00
Merge pull request #111 'soby-mathew-sm:fix_cookie_to_int_handler'
This commit is contained in:
commit
e10af77b28
2 changed files with 6 additions and 2 deletions
|
@ -105,8 +105,9 @@
|
||||||
* Read the id of the highest priority pending interrupt. If
|
* Read the id of the highest priority pending interrupt. If
|
||||||
* no interrupt is asserted then return to where we came from.
|
* no interrupt is asserted then return to where we came from.
|
||||||
*/
|
*/
|
||||||
|
mov x19, #INTR_ID_UNAVAILABLE
|
||||||
bl plat_ic_get_pending_interrupt_id
|
bl plat_ic_get_pending_interrupt_id
|
||||||
cmp x0, #INTR_ID_UNAVAILABLE
|
cmp x19, x0
|
||||||
b.eq interrupt_exit_\label
|
b.eq interrupt_exit_\label
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -125,6 +126,9 @@
|
||||||
/* Restore the reference to the 'handle' i.e. SP_EL3 */
|
/* Restore the reference to the 'handle' i.e. SP_EL3 */
|
||||||
mov x2, x20
|
mov x2, x20
|
||||||
|
|
||||||
|
/* x3 will point to a cookie (not used now) */
|
||||||
|
mov x3, xzr
|
||||||
|
|
||||||
/* Call the interrupt type handler */
|
/* Call the interrupt type handler */
|
||||||
blr x21
|
blr x21
|
||||||
|
|
||||||
|
|
|
@ -90,7 +90,7 @@ static uint64_t tspd_sel1_interrupt_handler(uint32_t id,
|
||||||
|
|
||||||
#if IMF_READ_INTERRUPT_ID
|
#if IMF_READ_INTERRUPT_ID
|
||||||
/* Check the security status of the interrupt */
|
/* 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
|
#endif
|
||||||
|
|
||||||
/* Sanity check the pointer to this cpu's context */
|
/* Sanity check the pointer to this cpu's context */
|
||||||
|
|
Loading…
Add table
Reference in a new issue