]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Remove __APPLE__ usage in ProcessorBind.h files.
authorxli24 <xli24@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 21 May 2009 02:24:02 +0000 (02:24 +0000)
committerxli24 <xli24@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 21 May 2009 02:24:02 +0000 (02:24 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8362 6f19259b-4bc3-4df7-8a09-765794883524

MdePkg/Include/Ia32/ProcessorBind.h
MdePkg/Include/Ipf/ProcessorBind.h
MdePkg/Include/X64/ProcessorBind.h

index a397f4b4b517a29eefe529bf7fe8c69c2bc5d096..5bb57fc7e208455a0c16cdbc6eb69d2dd8f23d2c 100644 (file)
@@ -333,7 +333,7 @@ typedef INT32   INTN;
 #endif\r
 \r
 //\r
 #endif\r
 \r
 //\r
-// For symbol name in GNU assembly code, an extra "_" is necessary\r
+// Macros for GNU assembly code\r
 //\r
 #if defined(__GNUC__)\r
   #if defined(linux)\r
 //\r
 #if defined(__GNUC__)\r
   #if defined(linux)\r
@@ -341,11 +341,11 @@ typedef INT32   INTN;
   #else\r
     #define ASM_PFX(name) _##name\r
   #endif \r
   #else\r
     #define ASM_PFX(name) _##name\r
   #endif \r
-  #if defined(__APPLE__)\r
-    #define ASM_GLOBAL .globl\r
-  #else\r
-    #define ASM_GLOBAL .global\r
-  #endif \r
+  ///\r
+  /// For GNU assembly code, .global or .globl can declare global symbols.\r
+  /// Define this macro to unify the usage.\r
+  ///\r
+  #define ASM_GLOBAL .globl\r
 #endif\r
 \r
 /**\r
 #endif\r
 \r
 /**\r
index 9c41f3ebc1dd5dbb40e4275b5a4894f0e12c18fb..da79467c75c28661eac98654afaef849dbad0abf 100644 (file)
@@ -392,11 +392,11 @@ typedef INT64   INTN;
   #define GLOBAL_REMOVE_IF_UNREFERENCED\r
 #endif\r
 \r
   #define GLOBAL_REMOVE_IF_UNREFERENCED\r
 #endif\r
 \r
-#if defined(__APPLE__)\r
-  #define ASM_GLOBAL .globl\r
-#else\r
-  #define ASM_GLOBAL .global\r
-#endif \r
+///\r
+/// For GNU assembly code, .global or .globl can declare global symbols.\r
+/// Define this macro to unify the usage.\r
+///\r
+#define ASM_GLOBAL .globl\r
 \r
 ///\r
 /// A pointer to a function in IPF points to a plabel.\r
 \r
 ///\r
 /// A pointer to a function in IPF points to a plabel.\r
index ce198678514367291c7b7fdd149d73004ee0c50e..fd4a91922bddadfc2532e79e8c5026c7b98a0e47 100644 (file)
@@ -397,19 +397,19 @@ typedef INT64   INTN;
 #endif\r
 \r
 //\r
 #endif\r
 \r
 //\r
-// For symbol name in GNU assembly code, an extra "_" is necessary\r
+// Macros for GNU assembly code\r
 //\r
 #if defined(__GNUC__)\r
   #if defined(linux)\r
     #define ASM_PFX(name) name\r
   #else\r
     #define ASM_PFX(name) _##name\r
 //\r
 #if defined(__GNUC__)\r
   #if defined(linux)\r
     #define ASM_PFX(name) name\r
   #else\r
     #define ASM_PFX(name) _##name\r
-  #endif  \r
-  #if defined(__APPLE__)\r
-    #define ASM_GLOBAL .globl\r
-  #else\r
-    #define ASM_GLOBAL .global\r
   #endif \r
   #endif \r
+  ///\r
+  /// For GNU assembly code, .global or .globl can declare global symbols.\r
+  /// Define this macro to unify the usage.\r
+  ///\r
+  #define ASM_GLOBAL .globl\r
 #endif\r
 \r
 /**\r
 #endif\r
 \r
 /**\r