• [^] # Re: souvenir souvenir ...

    Posté par (site web personnel) . En réponse au journal Des Laptops incompatibles Linux. Évalué à 3.

    (Source arch/i386/kernel/setup.c)

    static void __init squash_the_stupid_serial_number(struct cpuinfo_x86 *c)
    {
    if( test_bit(X86_FEATURE_PN, &c->x86_capability) &&
    disable_x86_serial_nr ) {
    /* Disable processor serial number */
    unsigned long lo,hi;
    rdmsr(MSR_IA32_BBL_CR_CTL,lo,hi);
    lo |= 0x200000;
    wrmsr(MSR_IA32_BBL_CR_CTL,lo,hi);
    printk(KERN_NOTICE "CPU serial number disabled.\n");
    clear_bit(X86_FEATURE_PN, &c->x86_capability);

    /* Disabling the serial number may affect the cpuid level */
    c->cpuid_level = cpuid_eax(0);
    }
    }