]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/BaseLib/Ia32/CpuId.S
Use ASM_PFX to optionnaly set the underscore prefix
[mirror_edk2.git] / MdePkg / Library / BaseLib / Ia32 / CpuId.S
index c394de926d4602a03c306aaa42bced356209bcdb..6f41e722277e837ec5da25100d353b3ee903129c 100644 (file)
@@ -21,6 +21,7 @@
 #\r
 #------------------------------------------------------------------------------\r
 \r
+.globl  ASM_PFX(AsmCpuid)\r
 \r
 #------------------------------------------------------------------------------\r
 #  VOID\r
 #    OUT  UINT32  *RegisterOutEdx  OPTIONAL\r
 #    )\r
 #------------------------------------------------------------------------------\r
-.globl  _AsmCpuid\r
-_AsmCpuid:\r
-    pushl   %ebx\r
-    pushl   %ebp\r
+ASM_PFX(AsmCpuid):\r
+    push    %ebx\r
+    push    %ebp\r
     movl    %esp, %ebp\r
     movl    12(%ebp), %eax\r
     cpuid\r
-    pushl   %ecx\r
+    push    %ecx\r
     movl    16(%ebp), %ecx\r
     jecxz   L1\r
     movl    %eax, (%ecx)\r
-L1: \r
+L1:\r
     movl    20(%ebp), %ecx\r
     jecxz   L2\r
     movl    %ebx, (%ecx)\r
-L2: \r
+L2:\r
     movl    24(%ebp), %ecx\r
     jecxz   L3\r
     popl    (%ecx)\r
-L3: \r
+L3:\r
     movl    28(%ebp), %ecx\r
     jecxz   L4\r
     movl    %edx, (%ecx)\r
-L4: \r
+L4:\r
     movl    12(%ebp), %eax\r
     leave\r
-    popl    %ebx\r
+    pop     %ebx\r
     ret\r
-\r
-\r