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

Add LoadedImageDevicePath protocol #795

Merged

Conversation

nicholasbishop
Copy link
Contributor

This protocol is the same as DevicePath, but only available on image handles.

Checklist

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

.node_iter()
.zip(loaded_image_device_path.node_iter())
{
assert_eq!(n1, n2);
Copy link
Contributor

Choose a reason for hiding this comment

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

This only fails if the UEFI implementation is doing weird stuff, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Right, I think this should always succeed. And per #553, the test is really only for OVMF anyway.

This protocol is the same as `DevicePath`, but only available on image handles.
@nicholasbishop nicholasbishop merged commit bec462f into rust-osdev:main May 9, 2023
10 checks passed
@nicholasbishop nicholasbishop deleted the bishop-loaded-image-dp branch May 9, 2023 16:34
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