Skip to content

Conversation

nicholasbishop
Copy link
Member

A while ago we changed DevicePath to be an unsized type, which necessitated some trait bound changes elsewhere. For example, open_protocol_exclusive changed from P: Protocol to P: ProtocolPointer + ?Sized. However, there are a number of other functions in boot services that take a generic protocol, and they weren't updated so they don't work with unsized protocols. This commit fixes all of those functions.

Checklist

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

A while ago we changed `DevicePath` to be an unsized type, which necessitated
some trait bound changes elsewhere. For example, `open_protocol_exclusive`
changed from `P: Protocol` to `P: ProtocolPointer + ?Sized`. However, there are
a number of other functions in boot services that take a generic protocol, and
they weren't updated so they don't work with unsized protocols. This commit
fixes all of those functions.
@phip1611 phip1611 force-pushed the bishop-unsized-proto branch from 540ab75 to 33f3b5e Compare January 22, 2023 19:41
@phip1611 phip1611 merged commit e63711c into rust-osdev:main Jan 22, 2023
@nicholasbishop nicholasbishop deleted the bishop-unsized-proto branch January 22, 2023 20:07
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