cpuid_eax damages registers (2.4.7pre7)

From: Julian Anastasov (ja@himel.com)
Date: Wed Jul 18 2001 - 05:48:00 EST


        I don't know whether cpuid_eax (2.4.7pre) should preserve the
registers changed from cpuid but I have an oops on boot with 2.4.7pre7 in
squash_the_stupid_serial_number where cpuid_eax changes ebx and the
parameter "c" is loaded with "Genu". The following change fixes the


c->cpuid_level = cpuid_eax(0);


unsigned int dummy;

cpuid(0, &c->cpuid_level, &dummy, &dummy, &dummy);

but I'm not sure in the definitions of these cpuid_XXX funcs. I see
that they are used at many places. IMO, they have to preserve the


Julian Anastasov <ja@ssi.bg>

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

This archive was generated by hypermail 2b29 : Mon Jul 23 2001 - 21:00:10 EST