home *** CD-ROM | disk | FTP | other *** search
- .file "cpuid.asm"
- .text
- .globl __cpuid@4
- __cpuid@4:
- push %esi
- movl 8(%esp),%esi
- pushl %ebx
- xorl %eax,%eax
- movl %eax,12(%esi)
- movl %eax,16(%esi)
- movl %eax,20(%esi)
- cpuid
- movl %ebx,(%esi)
- movl %edx,4(%esi)
- movl %ecx,8(%esi)
- orl %eax,%eax
- je _$L1
- cpuid
- movl %eax,16(%esi)
- movl %edx,20(%esi)
- _$L1:
- popl %ebx
- popl %esi
- ret $4
-
-