Skip to content

boot: Add freestanding version of open_protocol #1270

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 1 commit into from
Jul 30, 2024

Conversation

nicholasbishop
Copy link
Member

This comes with its own version of the ScopedProtocol struct. This one has no BootServices reference and no lifetime param.

For test coverage, updated test_uninstall_protocol_interface to use boot::open_protocol instead of the BootServices method. The BootServices method still has plenty of coverage in the test runner since BootServices::open_protocol_exclusive calls BootServices::open_protocol, and the former is called in lots of places.

Checklist

  • Sensible git history (for example, squash "typo" or "fix" commits). See the Rewriting History guide for help.
  • Update the changelog (if necessary)

@nicholasbishop nicholasbishop force-pushed the bishop-free-open-proto branch from f329f78 to 8e60a18 Compare July 29, 2024 19:00
This comes with its own version of the `ScopedProtocol` struct. This one has no
`BootServices` reference and no lifetime param.

For test coverage, updated `test_uninstall_protocol_interface` to use
`boot::open_protocol` instead of the `BootServices` method. The `BootServices`
method still has plenty of coverage in the test runner since
`BootServices::open_protocol_exclusive` calls `BootServices::open_protocol`, and
the former is called in lots of places.
@nicholasbishop nicholasbishop force-pushed the bishop-free-open-proto branch from 8e60a18 to 60c6b9d Compare July 29, 2024 19:00
@phip1611 phip1611 added this pull request to the merge queue Jul 30, 2024
Merged via the queue into main with commit 1f8cdfc Jul 30, 2024
15 checks passed
@phip1611 phip1611 deleted the bishop-free-open-proto branch July 30, 2024 06:00
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