]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdePkg/AArch64: use GCC_ASM_EXPORT to export functions
authorOlivier Martin <Olivier.Martin@arm.com>
Thu, 9 Jul 2015 10:43:27 +0000 (10:43 +0000)
committeroliviermartin <oliviermartin@Edk2>
Thu, 9 Jul 2015 10:43:27 +0000 (10:43 +0000)
This ensures the .type directive is used to mark them as function symbols

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Olivier Martin <Olivier.Martin@arm.com>
Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17904 6f19259b-4bc3-4df7-8a09-765794883524

MdePkg/Library/BaseCpuLib/AArch64/CpuFlushTlb.S
MdePkg/Library/BaseCpuLib/AArch64/CpuSleep.S
MdePkg/Library/BaseLib/AArch64/CpuBreakpoint.S
MdePkg/Library/BaseLib/AArch64/DisableInterrupts.S
MdePkg/Library/BaseLib/AArch64/EnableInterrupts.S
MdePkg/Library/BaseLib/AArch64/GetInterruptsState.S
MdePkg/Library/BaseLib/AArch64/SetJumpLongJump.S
MdePkg/Library/BaseLib/AArch64/SwitchStack.S

index 8e12bdd3577f6f3e270cafcdcdc7d6ee7723f66d..ea01a5ddb8e40ec93b43927d8a1e0032938ba260 100644 (file)
@@ -17,7 +17,7 @@
 \r
 .text\r
 .p2align 2\r
 \r
 .text\r
 .p2align 2\r
-ASM_GLOBAL ASM_PFX(CpuFlushTlb)\r
+GCC_ASM_EXPORT(CpuFlushTlb)\r
 \r
 #/**\r
 #  Flushes all the Translation Lookaside Buffers(TLB) entries in a CPU.\r
 \r
 #/**\r
 #  Flushes all the Translation Lookaside Buffers(TLB) entries in a CPU.\r
index 86c3e637171fd0717b51407be820e37f3c6367c3..316ac656e091aa50e0b7094ac5b004ff8644ea72 100644 (file)
@@ -17,7 +17,7 @@
 \r
 .text\r
 .align 3\r
 \r
 .text\r
 .align 3\r
-ASM_GLOBAL ASM_PFX(CpuSleep)\r
+GCC_ASM_EXPORT(CpuSleep)\r
 \r
 #/**\r
 #  Places the CPU in a sleep state until an interrupt is received.\r
 \r
 #/**\r
 #  Places the CPU in a sleep state until an interrupt is received.\r
index fe8c5717203c9c537b034561783d2d1158d648d0..6323cffaa9817df9b3ddd2efb4e58a817280ac64 100644 (file)
@@ -17,7 +17,7 @@
 \r
 .text\r
 .p2align 2\r
 \r
 .text\r
 .p2align 2\r
-ASM_GLOBAL ASM_PFX(CpuBreakpoint)\r
+GCC_ASM_EXPORT(CpuBreakpoint)\r
 \r
 #/**\r
 #  Generates a breakpoint on the CPU.\r
 \r
 #/**\r
 #  Generates a breakpoint on the CPU.\r
index b80a7b41d7db8e568aad95f4cbcd60b91f1de6fa..943cc44c70ebc9bf0ede1f5c16e5d4e2cc4ca9f5 100644 (file)
@@ -17,7 +17,7 @@
 \r
 .text\r
 .p2align 2\r
 \r
 .text\r
 .p2align 2\r
-ASM_GLOBAL ASM_PFX(DisableInterrupts)\r
+GCC_ASM_EXPORT(DisableInterrupts)\r
 \r
 #/**\r
 #  Disables CPU interrupts.\r
 \r
 #/**\r
 #  Disables CPU interrupts.\r
index 289739cda65a252b78eb57beae01d243c75da0f4..a423102535934b6d01dd8eb557e158e2418837c7 100644 (file)
@@ -17,7 +17,7 @@
 \r
 .text\r
 .p2align 2\r
 \r
 .text\r
 .p2align 2\r
-ASM_GLOBAL ASM_PFX(EnableInterrupts)\r
+GCC_ASM_EXPORT(EnableInterrupts)\r
 \r
 \r
 #/**\r
 \r
 \r
 #/**\r
index 5a971f5612d66c26bdbf4748dbccf82696cc02de..037f59acefd73dbbd716199e6fe177bc589c2a27 100644 (file)
@@ -17,7 +17,7 @@
 \r
 .text\r
 .p2align 2\r
 \r
 .text\r
 .p2align 2\r
-ASM_GLOBAL ASM_PFX(GetInterruptState)\r
+GCC_ASM_EXPORT(GetInterruptState)\r
 \r
 #/**\r
 #  Retrieves the current CPU interrupt state.\r
 \r
 #/**\r
 #  Retrieves the current CPU interrupt state.\r
index dbc5adbcac611074d870dd152afe73695e3fecc9..704996d918f81dca36e701da8776a18f1eda47b9 100644 (file)
@@ -13,8 +13,8 @@
 .text\r
 .p2align 3\r
 \r
 .text\r
 .p2align 3\r
 \r
-ASM_GLOBAL ASM_PFX(SetJump)\r
-ASM_GLOBAL ASM_PFX(InternalLongJump)\r
+GCC_ASM_EXPORT(SetJump)\r
+GCC_ASM_EXPORT(InternalLongJump)\r
 \r
 #define GPR_LAYOUT                         \\r
         REG_PAIR (x19, x20,  0);           \\r
 \r
 #define GPR_LAYOUT                         \\r
         REG_PAIR (x19, x20,  0);           \\r
index 207a569b1ba6901a999b4733ea5e63a57e67cd47..2bce9c998f4f8407af5c613575d6424d2c37cec0 100644 (file)
@@ -16,8 +16,8 @@
 .text\r
 .align 5\r
 \r
 .text\r
 .align 5\r
 \r
-ASM_GLOBAL ASM_PFX(InternalSwitchStackAsm)\r
-ASM_GLOBAL ASM_PFX(CpuPause)\r
+GCC_ASM_EXPORT(InternalSwitchStackAsm)\r
+GCC_ASM_EXPORT(CpuPause)\r
 \r
 /**\r
 //\r
 \r
 /**\r
 //\r