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 #------------------------------------------------------------------------------
13 GCC_ASM_EXPORT (GetInterruptState)
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.
32 ASM_PFX(GetInterruptState):
34 tst R0, #0x80 @Check if IRQ is enabled.