Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for AMD_CPU_EXT_FAMILY_1AH #557

Merged
merged 4 commits into from
Sep 11, 2024
Merged

Conversation

Shaneee
Copy link
Contributor

@Shaneee Shaneee commented Sep 10, 2024

AMD 9000 Series CPUs have changed from Family 19h to 1Ah.

Tested and confirmed to boot.

tscFCvtn2tValue = DivU64x64Remainder ((1000000000ULL << 32), tscFCvtt2nValue, NULL);

} else if (CpuInfo->ExtFamily == 0xB) {

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why cannot we just add a 100 MHz fallback to the upper if?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can do. I had it split for testing incase further modification was required. I'll have it tested to ensure compatibility.

@vit9696
Copy link
Contributor

vit9696 commented Sep 11, 2024

d:\a\opencorepkg\opencorepkg\udk\OpenCorePkg\Library\OcCpuLib\OcCpuLib.c(696): warning C4244: '=': conversion from 'UINT16' to 'UINT8', possible loss of data

VS compiler does not like your change, could you please fix?

@@ -786,7 +815,12 @@ ScanAmdProcessor (
if (MaxBusRatio == 0) {
Cpu->FSBFrequency = 100000000; // 100 MHz like Intel part.
} else {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

better to change to else if, and not introduce a new level of indentation.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated. Hopefully that fixes your concerns

@vit9696 vit9696 merged commit 5c42665 into acidanthera:master Sep 11, 2024
11 checks passed
@vit9696
Copy link
Contributor

vit9696 commented Sep 11, 2024

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants