From e7cb469e3aa3d5b05953a25f1ef40aea89d058c3 Mon Sep 17 00:00:00 2001 From: andrewfish Date: Wed, 15 Dec 2010 00:58:34 +0000 Subject: Fix issue with CodeSourcery gcc requiring assembly functions to have a .type define inorder to support interworking (calling from thumb(C code) to ARM code (hadn written assembly). We had to add a macro as the .type directive is not supported, or needed, by Xcode. All ARM .S files need to be updated. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11167 6f19259b-4bc3-4df7-8a09-765794883524 --- MdePkg/Library/BaseCpuLib/Arm/CpuFlushTlb.S | 1 + MdePkg/Library/BaseCpuLib/Arm/CpuSleep.S | 1 + 2 files changed, 2 insertions(+) (limited to 'MdePkg/Library/BaseCpuLib') diff --git a/MdePkg/Library/BaseCpuLib/Arm/CpuFlushTlb.S b/MdePkg/Library/BaseCpuLib/Arm/CpuFlushTlb.S index 5ea90114be..46ef3e09f0 100644 --- a/MdePkg/Library/BaseCpuLib/Arm/CpuFlushTlb.S +++ b/MdePkg/Library/BaseCpuLib/Arm/CpuFlushTlb.S @@ -17,6 +17,7 @@ .text .p2align 2 .globl ASM_PFX(CpuFlushTlb) +INTERWORK_FUNC(CpuFlushTlb) #/** # Flushes all the Translation Lookaside Buffers(TLB) entries in a CPU. diff --git a/MdePkg/Library/BaseCpuLib/Arm/CpuSleep.S b/MdePkg/Library/BaseCpuLib/Arm/CpuSleep.S index cf20b08762..ec2061a4b3 100644 --- a/MdePkg/Library/BaseCpuLib/Arm/CpuSleep.S +++ b/MdePkg/Library/BaseCpuLib/Arm/CpuSleep.S @@ -17,6 +17,7 @@ .text .p2align 2 .globl ASM_PFX(CpuSleep) +INTERWORK_FUNC(CpuSleep) #/** # Places the CPU in a sleep state until an interrupt is received. -- cgit v1.2.3