Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F161457237
D8384.id21948.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
810 B
Referenced Files
None
Subscribers
None
D8384.id21948.diff
View Options
Index: usr.sbin/cpucontrol/amd10h.c
===================================================================
--- usr.sbin/cpucontrol/amd10h.c
+++ usr.sbin/cpucontrol/amd10h.c
@@ -109,7 +109,7 @@
assert(path);
assert(dev);
- fd = -1;
+ fd = -1;
fw_image = MAP_FAILED;
devfd = open(dev, O_RDWR);
if (devfd < 0) {
@@ -164,14 +164,14 @@
*/
fw_image = (uint8_t *)mmap(NULL, st.st_size, PROT_READ,
MAP_PRIVATE, fd, 0);
- if (fw_image == MAP_FAILED) {
+ if (fw_image == MAP_FAILED) {
WARN(0, "mmap(%s)", path);
goto done;
}
fw_data = fw_image;
container_header = (const container_header_t *)fw_data;
- if (container_header->magic != AMD_10H_MAGIC) {
+ if (container_header->magic != AMD_10H_MAGIC) {
WARNX(2, "%s is not a valid amd firmware: bad magic", path);
goto done;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Jul 4, 11:52 PM (9 h, 50 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34684000
Default Alt Text
D8384.id21948.diff (810 B)
Attached To
Mode
D8384: Add support for microcode update on newer AMD CPUs (10h+)
Attached
Detach File
Event Timeline
Log In to Comment