2015-11-22 17:12 GMT+01:00 Felix Deichmann <m4j0rd...@gmail.com>:
> Maybe a fix in __get_cpuid() could be as simple as:
>
> -  if (__get_cpuid_max (__ext, 0) < __level)
> +  if (__get_cpuid_max (__ext, 0) <= __level)

Hm no, this will break all machines except those without cpuid of course.

The problem seems to be that the over-all logic, return types etc. in
cpuid.h is focused on "*which* cpuid level, starting at 0, does the
CPU support?", but doesn't ask "does the CPU support cpuid *at all*?".

Reply via email to