mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-27 15:45:21 +00:00
cpucontrol: use CPUCTL_UPDATE ioctl on correct file descriptor
I guess that means that microcode update has never worked for AMD CPUs. Please also note that only older AMD CPUs and micrcode file format are supported anyway (pre 10h family). MFC after: 1 week
This commit is contained in:
parent
7adc598a15
commit
4ced504bff
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=236504
@ -160,7 +160,7 @@ amd_update(const char *dev, const char *path)
|
||||
|
||||
args.data = fw_image;
|
||||
args.size = st.st_size;
|
||||
error = ioctl(fd, CPUCTL_UPDATE, &args);
|
||||
error = ioctl(devfd, CPUCTL_UPDATE, &args);
|
||||
if (error < 0) {
|
||||
fprintf(stderr, "failed.\n");
|
||||
warn("ioctl()");
|
||||
|
Loading…
Reference in New Issue
Block a user