X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=MdePkg%2FInclude%2FX64%2FProcessorBind.h;h=fd4a91922bddadfc2532e79e8c5026c7b98a0e47;hp=ce198678514367291c7b7fdd149d73004ee0c50e;hb=7b2cc5499f4398565308b1b7f8bf56ff56a6f965;hpb=67d632277d0650197002996fb98cb3cb41dce9e8 diff --git a/MdePkg/Include/X64/ProcessorBind.h b/MdePkg/Include/X64/ProcessorBind.h index ce19867851..fd4a91922b 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 /**