Home | History | Annotate | Download | only in x86
      1 #include "tests/asm.h"
      2 
      3 	.file	"oneparam.c"
      4 	.version	"01.01"
      5 gcc2_compiled.:
      6 .text
      7 	.align 4
      8 
      9 .globl VG_SYM_ASM(get_cpuid0)
     10 VG_SYM_ASM(get_cpuid0):
     11 	pushl	%ebp
     12 	movl	%esp, %ebp
     13 	movl	8(%ebp), %eax
     14 
     15 	pushl	%edi
     16 	pushl	%eax
     17 	pushl	%ebx
     18 	pushl	%ecx
     19 	pushl	%edx
     20 
     21 	movl	%eax, %edi
     22 	movl	$0, %eax
     23 	cpuid
     24 	movl	%eax, (%edi)
     25 	movl	%ebx, 4(%edi)
     26 	movl	%ecx, 8(%edi)
     27 	movl	%edx, 12(%edi)
     28 
     29 	popl	%edx
     30 	popl	%ecx
     31 	popl	%ebx
     32 	popl	%eax
     33 	popl	%edi
     34 
     35 	popl	%ebp
     36 	ret
     37 
     38 
     39 .globl VG_SYM_ASM(get_cpuid1)
     40 VG_SYM_ASM(get_cpuid1):
     41 	pushl	%ebp
     42 	movl	%esp, %ebp
     43 	movl	8(%ebp), %eax
     44 
     45 	pushl	%edi
     46 	pushl	%eax
     47 	pushl	%ebx
     48 	pushl	%ecx
     49 	pushl	%edx
     50 
     51 	movl	%eax, %edi
     52 	movl	$1, %eax
     53 	cpuid
     54 	movl	%eax, (%edi)
     55 	movl	%ebx, 4(%edi)
     56 	movl	%ecx, 8(%edi)
     57 	movl	%edx, 12(%edi)
     58 
     59 	popl	%edx
     60 	popl	%ecx
     61 	popl	%ebx
     62 	popl	%eax
     63 	popl	%edi
     64 
     65 	popl	%ebp
     66 	ret
     67 
     68 
     69 
     70 
     71 	.ident	"GCC: (GNU) 2.96 20000731 (Red Hat Linux 7.1 2.96-98)"
     72