Author: avg Date: Sun Jun 3 08:30:00 2012 New Revision: 236504 URL: http://svn.freebsd.org/changeset/base/236504
Log: 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 Modified: head/usr.sbin/cpucontrol/amd.c Modified: head/usr.sbin/cpucontrol/amd.c ============================================================================== --- head/usr.sbin/cpucontrol/amd.c Sun Jun 3 08:01:12 2012 (r236503) +++ head/usr.sbin/cpucontrol/amd.c Sun Jun 3 08:30:00 2012 (r236504) @@ -160,7 +160,7 @@ amd_update(const char *dev, const char * 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()"); _______________________________________________ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"