diff options
author | xli24 <xli24@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-05-21 02:24:02 +0000 |
---|---|---|
committer | xli24 <xli24@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-05-21 02:24:02 +0000 |
commit | 7b2cc5499f4398565308b1b7f8bf56ff56a6f965 (patch) | |
tree | 1b3456bb4ef5d14ad8818845ec8a01f5d4fc7059 /MdePkg | |
parent | 67d632277d0650197002996fb98cb3cb41dce9e8 (diff) | |
download | edk2-7b2cc5499f4398565308b1b7f8bf56ff56a6f965.zip edk2-7b2cc5499f4398565308b1b7f8bf56ff56a6f965.tar.gz edk2-7b2cc5499f4398565308b1b7f8bf56ff56a6f965.tar.bz2 |
Remove __APPLE__ usage in ProcessorBind.h files.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8362 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg')
-rw-r--r-- | MdePkg/Include/Ia32/ProcessorBind.h | 12 | ||||
-rw-r--r-- | MdePkg/Include/Ipf/ProcessorBind.h | 10 | ||||
-rw-r--r-- | MdePkg/Include/X64/ProcessorBind.h | 12 |
3 files changed, 17 insertions, 17 deletions
diff --git a/MdePkg/Include/Ia32/ProcessorBind.h b/MdePkg/Include/Ia32/ProcessorBind.h index a397f4b..5bb57fc 100644 --- a/MdePkg/Include/Ia32/ProcessorBind.h +++ b/MdePkg/Include/Ia32/ProcessorBind.h @@ -333,7 +333,7 @@ typedef INT32 INTN; #endif
//
-// For symbol name in GNU assembly code, an extra "_" is necessary
+// Macros for GNU assembly code
//
#if defined(__GNUC__)
#if defined(linux)
@@ -341,11 +341,11 @@ typedef INT32 INTN; #else
#define ASM_PFX(name) _##name
#endif
- #if defined(__APPLE__)
- #define ASM_GLOBAL .globl
- #else
- #define ASM_GLOBAL .global
- #endif
+ ///
+ /// For GNU assembly code, .global or .globl can declare global symbols.
+ /// Define this macro to unify the usage.
+ ///
+ #define ASM_GLOBAL .globl
#endif
/**
diff --git a/MdePkg/Include/Ipf/ProcessorBind.h b/MdePkg/Include/Ipf/ProcessorBind.h index 9c41f3e..da79467 100644 --- a/MdePkg/Include/Ipf/ProcessorBind.h +++ b/MdePkg/Include/Ipf/ProcessorBind.h @@ -392,11 +392,11 @@ typedef INT64 INTN; #define GLOBAL_REMOVE_IF_UNREFERENCED
#endif
-#if defined(__APPLE__)
- #define ASM_GLOBAL .globl
-#else
- #define ASM_GLOBAL .global
-#endif
+///
+/// For GNU assembly code, .global or .globl can declare global symbols.
+/// Define this macro to unify the usage.
+///
+#define ASM_GLOBAL .globl
///
/// A pointer to a function in IPF points to a plabel.
diff --git a/MdePkg/Include/X64/ProcessorBind.h b/MdePkg/Include/X64/ProcessorBind.h index ce19867..fd4a919 100644 --- a/MdePkg/Include/X64/ProcessorBind.h +++ b/MdePkg/Include/X64/ProcessorBind.h @@ -397,19 +397,19 @@ typedef INT64 INTN; #endif
//
-// For symbol name in GNU assembly code, an extra "_" is necessary
+// Macros for GNU assembly code
//
#if defined(__GNUC__)
#if defined(linux)
#define ASM_PFX(name) name
#else
#define ASM_PFX(name) _##name
- #endif
- #if defined(__APPLE__)
- #define ASM_GLOBAL .globl
- #else
- #define ASM_GLOBAL .global
#endif
+ ///
+ /// For GNU assembly code, .global or .globl can declare global symbols.
+ /// Define this macro to unify the usage.
+ ///
+ #define ASM_GLOBAL .globl
#endif
/**
|