Code: Select all
; Disable CPU serial number/Enable CPU signature
Mov Ecx,0x119
Rdmsr
And Eax,0xFFDFFFFF ; Disable serial bit
Wrmsr
Code: Select all
; Disable CPU serial number/Enable CPU signature
Mov Ecx,0x119
Rdmsr
And Eax,0xFFDFFFFF ; Disable serial bit
Wrmsr
It seems that on all processors (even => Pentium III), what is returned in Eax is the Processor Signature. Therefore the disabling the serial code don't seem to be needed... since the signature is part of it and returned correctly. However, I can be wrong... and I don't think the author of the tutorial I read just came up with the code out of the blue... maybe I should mail him and ask..."To access the most significant 32-bits of the processor serial number the program should set the EAX register parameter value to ?1? and then execute the CPUID instruction as follows:
MOV EAX, 01H
CPUID
After execution of the CPUID instruction, the EAX register contains the Processor Signature."