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

Modify PatchACPI to assign processorIDs from DSDT #1

Merged
merged 2 commits into from
Sep 15, 2019

Conversation

Florin9doi
Copy link
Contributor

@Florin9doi Florin9doi commented Sep 14, 2019

MacOS assumes that the first processor from DSDT is always enabled, without checking MADT table.
Here we're trying to assign first IDs found in DSDT to enabled processors in MADT, such that macOS assumption to be true.


This change should fix some X79 boards with strange DSDT: https://pastebin.com/raw/SZRn1BGj (cpu: 80, 81, 00, 01, .... 0f, 82....).
Now whatever is present in DSDT should be mirrored to MADT.

macOS assumes that the first processor from DSDT is always enabled, without checking MADT table
here we're trying to assign first IDs found in DSDT to enabled processors in MADT, such that macOS assumption to be true
and resolves an uninitialized read:
......
   LocalApicNMI++;
   ApicTable->Length += LocalApicNMI->Length;
......
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants