sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 1 | |
| 2 | |
| 3 | .file "oneparam.c" |
| 4 | .version "01.01" |
| 5 | gcc2_compiled.: |
| 6 | .text |
| 7 | .align 4 |
| 8 | |
| 9 | .globl get_cpuid0 |
| 10 | .type get_cpuid0,@function |
| 11 | get_cpuid0: |
| 12 | pushl %ebp |
| 13 | movl %esp, %ebp |
| 14 | movl 8(%ebp), %eax |
| 15 | |
| 16 | pushl %edi |
| 17 | pushl %eax |
| 18 | pushl %ebx |
| 19 | pushl %ecx |
| 20 | pushl %edx |
| 21 | |
| 22 | movl %eax, %edi |
| 23 | movl $0, %eax |
| 24 | cpuid |
| 25 | movl %eax, (%edi) |
| 26 | movl %ebx, 4(%edi) |
| 27 | movl %ecx, 8(%edi) |
| 28 | movl %edx, 12(%edi) |
| 29 | |
| 30 | popl %edx |
| 31 | popl %ecx |
| 32 | popl %ebx |
| 33 | popl %eax |
| 34 | popl %edi |
| 35 | |
| 36 | popl %ebp |
| 37 | ret |
| 38 | .Lfe1: |
| 39 | .size get_cpuid0,.Lfe1-get_cpuid0 |
| 40 | |
| 41 | |
| 42 | .globl get_cpuid1 |
| 43 | .type get_cpuid1,@function |
| 44 | get_cpuid1: |
| 45 | pushl %ebp |
| 46 | movl %esp, %ebp |
| 47 | movl 8(%ebp), %eax |
| 48 | |
| 49 | pushl %edi |
| 50 | pushl %eax |
| 51 | pushl %ebx |
| 52 | pushl %ecx |
| 53 | pushl %edx |
| 54 | |
| 55 | movl %eax, %edi |
| 56 | movl $1, %eax |
| 57 | cpuid |
| 58 | movl %eax, (%edi) |
| 59 | movl %ebx, 4(%edi) |
| 60 | movl %ecx, 8(%edi) |
| 61 | movl %edx, 12(%edi) |
| 62 | |
| 63 | popl %edx |
| 64 | popl %ecx |
| 65 | popl %ebx |
| 66 | popl %eax |
| 67 | popl %edi |
| 68 | |
| 69 | popl %ebp |
| 70 | ret |
| 71 | .Lfe2: |
| 72 | .size get_cpuid1,.Lfe2-get_cpuid1 |
| 73 | |
| 74 | |
| 75 | |
| 76 | |
| 77 | .ident "GCC: (GNU) 2.96 20000731 (Red Hat Linux 7.1 2.96-98)" |