1 ;------------------------------------------------------------------------------
3 ; GetInterruptState() function for ARM
5 ; Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
6 ; Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
7 ; SPDX-License-Identifier: BSD-2-Clause-Patent
9 ;------------------------------------------------------------------------------
11 EXPORT GetInterruptState
13 AREA Interrupt_enable, CODE, READONLY
16 ; Retrieves the current CPU interrupt state.
18 ; Returns TRUE is interrupts are currently enabled. Otherwise
21 ; @retval TRUE CPU interrupts are enabled.
22 ; @retval FALSE CPU interrupts are disabled.
34 TST R0, #0x80 ;Check if IRQ is enabled.