Skip to content
Commit 8f89df49 authored by Peter Hoyes's avatar Peter Hoyes Committed by Leandro Belli
Browse files

arch/aarch64: Return error if IAR queried outside ISR



The AArch64 interrupt interface is currently inconsistent with the
Arm-m interface in that it returns FWK_SUCCESS if the current
interrupt ID is queried outside of an interrupt handler.

Add logic to arch_interrupt_get_current to return FWK_E_STATE instead in
this condition.

Signed-off-by: Peter Hoyes's avatarPeter Hoyes <peter.hoyes@arm.com>
parent ba5936c1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment