Skip to content

multiboot2: load: remove odd offset thingy #142

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
Jun 21, 2023
Merged

multiboot2: load: remove odd offset thingy #142

merged 1 commit into from
Jun 21, 2023

Conversation

phip1611
Copy link
Member

@phip1611 phip1611 commented Jun 19, 2023

This removes the weird load_with_offset thingy which can also be done via an adjusted pointer. -> less complexity

Furthermore, the Multiboot2 information structure now captures the lifetime of the context where it is created. Last but not least, due to the pointer provenance developments in Rust, it is much better to consume a pointer instead of an exposed address.

@phip1611
Copy link
Member Author

Hey @YtvwlD

What do you think about this API change? I'd like to get rid of the weird offset thingy. I do not see a reason why it is necessary at all. Please change my mind, if I miss something.

@phip1611 phip1611 force-pushed the dev branch 4 times, most recently from e017a18 to 37ea973 Compare June 20, 2023 10:55
@phip1611 phip1611 changed the title multiboot2: remove odd offset thingy multiboot2: load: remove odd offset thingy Jun 20, 2023
@YtvwlD
Copy link
Contributor

YtvwlD commented Jun 20, 2023

I did not understand why it was there, either. And the PR that added this came with no explanation either, right?

Perhaps this is for segmentation or something like that?

@phip1611
Copy link
Member Author

phip1611 commented Jun 20, 2023

And the PR that added this came with no explanation either, right?

yes

Perhaps this is for segmentation or something like that?

Hm, but the offset was added to the pointer in any case.. hm.. strange. I wait one more day and then merge it.

@phip1611
Copy link
Member Author

phip1611 commented Jun 20, 2023

So, you are also in favor of this API change/improvement/simplification, @YtvwlD , right?

@phip1611 phip1611 linked an issue Jun 20, 2023 that may be closed by this pull request
@phip1611 phip1611 force-pushed the dev branch 11 times, most recently from 202b80a to 1e389fa Compare June 21, 2023 15:37
@phip1611 phip1611 merged commit 7f3fc63 into main Jun 21, 2023
@phip1611 phip1611 deleted the dev branch June 21, 2023 15:45
@YtvwlD
Copy link
Contributor

YtvwlD commented Jun 21, 2023

I don't have an opinion on this.

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.

multiboot2-header: various improvements
2 participants