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

support higher half position independent kernels #289

Merged
merged 3 commits into from Jan 9, 2023

Conversation

Freax13
Copy link
Contributor

@Freax13 Freax13 commented Nov 28, 2022

This pr adds support for loading position independent kernels with a base address other than 0.

Currently the base address is ignored. In the future, we could try to map the kernel at it's base address if it's non zero. Doing this right now would be difficult because we don't have accurate book keeping on what addresses have already been allocated (See #239). I propose we take another look at this once finer granular ASLR is implemented (finer granular ASLR requires more accurate book keeping).

Closes #285

Freax13 and others added 2 commits November 28, 2022 11:14
Co-Authored-By: Philipp Oppermann <dev@phil-opp.com>
Co-Authored-By: Philipp Oppermann <dev@phil-opp.com>
@phil-opp phil-opp deleted the branch rust-osdev:main December 1, 2022 10:21
@phil-opp phil-opp closed this Dec 1, 2022
@Freax13
Copy link
Contributor Author

Freax13 commented Dec 1, 2022

It happened again, GitHub automatically closed this pr when #283 was merged.

@phil-opp phil-opp reopened this Dec 1, 2022
@phil-opp phil-opp changed the base branch from release to main December 1, 2022 10:53
@phil-opp
Copy link
Member

phil-opp commented Dec 1, 2022

Sorry about that! Maybe the automatic PR base change does not work across forks?

For now I disabled the automatic deletion of merged branches for this repo to avoid this issue in the future.

@phil-opp phil-opp added this to the v0.11.1 milestone Dec 1, 2022
Copy link
Member

@phil-opp phil-opp left a comment

Choose a reason for hiding this comment

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

Sorry for the late review. Thanks a lot for this PR, the code is really nice!

@phil-opp phil-opp merged commit bf4fcea into rust-osdev:main Jan 9, 2023
@phil-opp phil-opp mentioned this pull request Mar 12, 2023
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.

Support position independent code in higher half
2 participants