Bill Yi | 4e213d5 | 2015-06-23 13:53:11 -0700 | [diff] [blame] | 1 | .text |
2 | .global cpu_features | ||||
3 | .type cpu_features,@function | ||||
4 | cpu_features: | ||||
5 | pushl %ebx | ||||
6 | pushl %ecx | ||||
7 | pushl %edx | ||||
8 | movl $1,%eax | ||||
9 | cpuid | ||||
10 | movl %edx,%eax | ||||
11 | popl %edx | ||||
12 | popl %ecx | ||||
13 | popl %ebx | ||||
14 | ret | ||||
15 |