]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/BaseLib/Arm/GetInterruptsState.S
Fix issue with CodeSourcery gcc requiring assembly functions to have a .type define...
[mirror_edk2.git] / MdePkg / Library / BaseLib / Arm / GetInterruptsState.S
index 9c37e058297fecb8a70ee32e77997c7ce8d4a56b..95b3c5f07ec56b7f405bcfbe800b749e50b16b6a 100644 (file)
@@ -2,12 +2,12 @@
 #\r
 # GetInterruptState() function for ARM\r
 #\r
-# Copyright (c) 2006 - 2009, Intel Corporation<BR>\r
-# Portions copyright (c) 2008-2009 Apple Inc.<BR>\r
-# All rights reserved. This program and the accompanying materials\r
+# Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>\r
+# Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>\r
+# This program and the accompanying materials\r
 # are licensed and made available under the terms and conditions of the BSD License\r
 # which accompanies this distribution.  The full text of the license may be found at\r
-# http://opensource.org/licenses/bsd-license.php\r
+# http://opensource.org/licenses/bsd-license.php.\r
 #\r
 # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
@@ -16,7 +16,8 @@
 \r
 .text\r
 .p2align 2\r
-.globl _GetInterruptState\r
+.globl ASM_PFX(GetInterruptState)\r
+INTERWORK_FUNC(GetInterruptState)
 \r
 #/**\r
 #  Retrieves the current CPU interrupt state.\r
@@ -35,7 +36,7 @@
 #  VOID\r
 # );\r
 #\r
-_GetInterruptState:\r
+ASM_PFX(GetInterruptState):\r
     mrs    R0, CPSR\r
     tst    R0, #0x80  @Check if IRQ is enabled.\r
     moveq  R0, #1\r