Skip to content

Add LoadedImageDevicePath protocol #795

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

Conversation

nicholasbishop
Copy link
Member

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)

@nicholasbishop nicholasbishop force-pushed the bishop-loaded-image-dp branch from 7f456f4 to c8f414e Compare May 8, 2023 22:52
.node_iter()
.zip(loaded_image_device_path.node_iter())
{
assert_eq!(n1, n2);
Copy link
Member

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
Member 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 force-pushed the bishop-loaded-image-dp branch from c8f414e to e4a1c76 Compare May 9, 2023 16:29
@nicholasbishop nicholasbishop merged commit bec462f into rust-osdev:main May 9, 2023
@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.

2 participants