blob: ef4ba4ecfc230495bc2ebbc74ff1c7a4f348df91 [file] [log] [blame]
Bill Yi4e213d52015-06-23 13:53:11 -07001.text
2.global cpu_features
3 .type cpu_features,@function
4cpu_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