Open bkerin opened 1 year ago
for me 0x1fc has a bit set in the sixth hex digit (counting from the right):
# rdmsr 0x1fc 24005f
So I needed to and with 0xFFFFFE, otherwise this happens:
# printf '%x\n' $((0x24005f & 0xFFFFE)) 4005e
To be safe it's probably best to use 0xFFFFFFFE or perhaps even 0xFFFFFFFFFFFFFFFE (though I'm not sure the shell actually handles that).
Just my 2 cents: script works as is on my Thinkpad T470s, i7-7600U
for me 0x1fc has a bit set in the sixth hex digit (counting from the right):
So I needed to and with 0xFFFFFE, otherwise this happens:
To be safe it's probably best to use 0xFFFFFFFE or perhaps even 0xFFFFFFFFFFFFFFFE (though I'm not sure the shell actually handles that).