Skip to content

AML: Fix DefPackage len < NumElements failing #192

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

Merged
merged 2 commits into from
Sep 5, 2023

Conversation

alnyan
Copy link
Contributor

@alnyan alnyan commented Aug 29, 2023

This PR fixes the issue when entry count in DefPackage is less than NumElements specified by it:

// As found in the DSDT of Lenovo ThinkPad T430
...
Name (BT0P, Package (0x04){})
...

The spec says if NumElements is greater than the number of values provided, the rest should just be filled with an Uninitialized type value.

@IsaacWoods
Copy link
Member

Thanks!

@IsaacWoods IsaacWoods merged commit 9d2fa98 into rust-osdev:main Sep 5, 2023
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.

2 participants