Reputation: 1481
I need to read the CPU temperature of an Intel x86_64 processor. For that I am planning to write a Windows kernel mode driver that can make use of the call __readdmsr 'asm' command.
But I am not sure on how to select the core for which the readmsr command is to be applied.
Can you please help me with this?
Upvotes: 1
Views: 889
Reputation: 29052
It looks like you could use KeSetSystemAffinityThread
for that. Restrict the thread with 'rdmsr` to the processor you want to check.
Upvotes: 1