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

AML: Implement OpReg-relative PkgLength parser #191

Merged
merged 1 commit into from
Sep 5, 2023

Conversation

alnyan
Copy link
Contributor

@alnyan alnyan commented Aug 29, 2023

This PR fixes the issue #187 by implementing an additional kind of PkgLength, which is checked against its OperationRegion instead of the AML input slice.

Copy link
Member

@IsaacWoods IsaacWoods left a comment

Choose a reason for hiding this comment

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

Nice, thanks!

It's not clear to me that having separate PkgLength and RegionPkgLength types provides a huge amount of benefit, since the fields are fairly similar (and we could easily rewrite the constructors to allow both cases) and we don't rely on the type safety to use the right one, but it does make the intention clearer.

@IsaacWoods IsaacWoods merged commit b2a5f4a into rust-osdev:main Sep 5, 2023
1 check passed
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