use rdmsr_safe() instead of rdmsr() for probing feature
authorsemarie <semarie@openbsd.org>
Sun, 6 Oct 2024 16:24:02 +0000 (16:24 +0000)
committersemarie <semarie@openbsd.org>
Sun, 6 Oct 2024 16:24:02 +0000 (16:24 +0000)
commit2cfcdaeb04723cebfac84d68c36b17f1f8981882
treefe5072a6f8a619149dc89c8f30ec16aa9208116f
parente1668dfc1242668dc9d8d8e44edd40e3408ff920
use rdmsr_safe() instead of rdmsr() for probing feature

the second could raise general protection fault on non-existant MSR

fix with help of jsg@
ok dv@
sys/arch/amd64/amd64/cpu.c