Skip to content
Advertisement

Tag: cpuid

Differing CPUID usage from high-level languages

I’m attempting to utilize an x86 ASM function that requires certain processor architecture. I understand that I need to check a specific bit after calling “CPUID standard function 01H”. Below is a C implementation from the CPUID Wikipedia page for calling CPUID: Though the Linux kernel uses the function below: Which one is better? Other they essentually equivalent? Answer As

Advertisement