flat assembler
Message board for the users of flat assembler.
Index
> Windows > [solved] wrmsr crash (reading microcode rev) |
Author |
|
DimonSoft 12 Apr 2020, 21:42
Intel® 64 and IA-32 Architectures Software Developer’s Manual wrote: This instruction must be executed at privilege level 0 or in real-address mode; otherwise, a general protection exception #GP(0) is generated. |
|||
12 Apr 2020, 21:42 |
|
revolution 12 Apr 2020, 21:55
jmurray: You will need to make a driver for Windows and execute the code within the driver context.
A normal user mode program has no chance to do this. Writing and installing a driver can range from easy to hard depending upon your version of Windows. XP and below you have a much easier time. Vista and above you will find many barriers. |
|||
12 Apr 2020, 21:55 |
|
jmurray 13 Apr 2020, 15:32
Thank you both for replying.
I found it a bit odd that the "Intel Processor Identification Utility" program seemed to be able to view the CPU's revision. And it didn't mention requiring a driver. I'm now presuming that this is read from the registry instead Thank you for your help. I had hoped it was possible to accurately read it from software somehow. |
|||
13 Apr 2020, 15:32 |
|
bitRAKE 13 Apr 2020, 18:13
Agner Fog's driver might jump-start your effort if you want to pursue this ...
https://www.agner.org/optimize/#testp In my own experience, without driver signing on Windows 10 it requires turning off the check at boot every time the driver is needed. Driver signing is expensive. For this type of work, Windows is becoming more effort than it's worth. Yet, your use case might differ. Intel can afford driver signing. _________________ ¯\(°_o)/¯ “languages are not safe - uses can be” Bjarne Stroustrup |
|||
13 Apr 2020, 18:13 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.