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

Kernel API simplifications + misc improvements #103

Merged
merged 5 commits into from
Dec 22, 2024
Merged

Conversation

d-tatianin
Copy link
Member

No description provided.

Add a new UACPI_ADDRESS_SPACE_HANDLER_DEFAULT flag,
which all builtin address space handlers register
themselves with, thus allowing us to tell which ones
are default, and which are installed by the host.

This will be used in the future commits.

Signed-off-by: Daniil Tatianin <99danilt@gmail.com>
We don't need to lock anything nor jump inside a different function if
the space we're given doesn't require _REG calls. Do the check before
we do anything.

Also add this check to uninstall_address_space_handler (the final caller
of reg_or_unreg_all_opregions that didn't have an early check). With
that, we can now drop the check inside, which is now redundant.

Signed-off-by: Daniil Tatianin <99danilt@gmail.com>
Only do this for builtin handlers, which we can now distinguish from
host's via the new flag.

Signed-off-by: Daniil Tatianin <99danilt@gmail.com>
These are redundant in that they can be fully implemented internally in
terms of already existing kernel API, so get rid of them.

Signed-off-by: Daniil Tatianin <99danilt@gmail.com>
Signed-off-by: Daniil Tatianin <99danilt@gmail.com>
@d-tatianin d-tatianin merged commit 5547881 into master Dec 22, 2024
8 checks passed
@d-tatianin d-tatianin deleted the kapi-improvements branch December 22, 2024 22:17
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.

1 participant