summaryrefslogtreecommitdiff
path: root/MdePkg/Include/x64
diff options
context:
space:
mode:
authorjwang36 <jwang36@6f19259b-4bc3-4df7-8a09-765794883524>2007-07-24 05:34:35 +0000
committerjwang36 <jwang36@6f19259b-4bc3-4df7-8a09-765794883524>2007-07-24 05:34:35 +0000
commit27af6b876a70c49928bdae7bedbb72cba9a18171 (patch)
treeec4c0de438d7c126f6f04509d7234fd8819965c5 /MdePkg/Include/x64
parentefc69967c41fa29f5a3b74861508ae3f1e2e0369 (diff)
downloadedk2-platforms-27af6b876a70c49928bdae7bedbb72cba9a18171.tar.xz
Added "#define ASM_PFX(name) _##name" for GNU assembly code preprocessing
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@3409 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg/Include/x64')
-rw-r--r--MdePkg/Include/x64/ProcessorBind.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/MdePkg/Include/x64/ProcessorBind.h b/MdePkg/Include/x64/ProcessorBind.h
index a4a1a35e35..a401d23f26 100644
--- a/MdePkg/Include/x64/ProcessorBind.h
+++ b/MdePkg/Include/x64/ProcessorBind.h
@@ -225,5 +225,12 @@ typedef INT64 INTN;
#define GLOBAL_REMOVE_IF_UNREFERENCED
#endif
+//
+// For symbol name in GNU assembly code, an extra "_" is necessary
+//
+#if __GNUC__
+ #define ASM_PFX(name) _##name
+#endif
+
#endif