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