Use the existing MSR_BIOS_SIGN on AMD.

Reported by:	kib
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Mark Johnston 2018-07-13 20:56:20 +00:00
parent a20946b5d1
commit a18e40aad4
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=336263
2 changed files with 2 additions and 3 deletions

View File

@ -973,7 +973,6 @@
#define AMD_WT_ALLOC_FRE 0x10000 /* fixed (A0000-FFFFF) range enable */
/* AMD64 MSR's */
#define MSR_PATCH_LEVEL 0x0000008b /* microcode revision number */
#define MSR_EFER 0xc0000080 /* extended features */
#define MSR_STAR 0xc0000081 /* legacy mode SYSCALL target/cs/ss */
#define MSR_LSTAR 0xc0000082 /* long mode SYSCALL target rip */

View File

@ -129,7 +129,7 @@ amd10h_update(const char *dev, const char *path)
}
signature = idargs.data[0];
msrargs.msr = MSR_PATCH_LEVEL;
msrargs.msr = MSR_BIOS_SIGN;
error = ioctl(devfd, CPUCTL_RDMSR, &msrargs);
if (error < 0) {
WARN(0, "ioctl(%s)", dev);
@ -295,7 +295,7 @@ amd10h_update(const char *dev, const char *path)
fprintf(stderr, "done.\n");
}
msrargs.msr = MSR_PATCH_LEVEL;
msrargs.msr = MSR_BIOS_SIGN;
error = ioctl(devfd, CPUCTL_RDMSR, &msrargs);
if (error < 0) {
WARN(0, "ioctl(%s)", dev);