Skip to content

Commit

Permalink
OcCpuLib: Fix incorrect identification of Xeon E5 and W CPUs
Browse files Browse the repository at this point in the history
  • Loading branch information
Goldfish64 committed Apr 4, 2021
1 parent cb527e7 commit 6dcabf0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ OpenCore Changelog
- Added dynamic keyboard protocol installation on CrScreenshotDxe
- Support starting UEFI tools with argument support (e.g. `ControlMsrE2`) without arguments from picker
- Fixed OpenCanopy font height calculation, may reject previously working fonts and mitigate memory corruption
- Fixed incorrect identification of Xeon E5XXX/E5-XXXX and Xeon WXXXX/W-XXXX CPUs

#### v0.6.7
- Fixed ocvalidate return code to be non-zero when issues are found
Expand Down
4 changes: 2 additions & 2 deletions Library/OcCpuLib/AppleCpuSupport.c
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,10 @@ InternalDetectAppleMajorType (
}
}

if (AsciiStrnCmp (BrandInfix, "E5", L_STR_LEN ("E5")) == 0) {
if (AsciiStrnCmp (BrandInfix, "E5-", L_STR_LEN ("E5-")) == 0) {
return AppleProcessorMajorXeonE5;
}
if (AsciiStrnCmp (BrandInfix, "W", L_STR_LEN ("W")) == 0) {
if (AsciiStrnCmp (BrandInfix, "W-", L_STR_LEN ("W-")) == 0) {
return AppleProcessorMajorXeonW;
}
return AppleProcessorMajorXeonNehalem;
Expand Down

0 comments on commit 6dcabf0

Please sign in to comment.