-
Notifications
You must be signed in to change notification settings - Fork 22
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 alloc support #278
Add alloc support #278
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot, Yu! :)
Overall, this looks very promising. I left a few comments with the hope to avoid a few dependencies as well as nightly
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot!
Code-wise, this looks excellent. Just a few more requests on the form:
- The
Cargo.lock
file should not be added to.gitignore
. Instead, it should track the minimum changes necessary by this PR. - This PR should not include any merge commits. In this case, we might even squash everything into one commit.
- The formatting CI check fails (run
cargo fmt
) to fix any formatting issues.
If you need help with rebasing, reach out. :)
328e86e
to
a31d514
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, CI shows that this does not work on UEFI, which makes sense, since UEFI already provides a global allocator.
Let's move the dependencies in Cargo.toml
to [target.'cfg(target_os = "none")'.dependencies]
and mark mod allocator;
with #[cfg(target_os = "none")]
. We could move the declaration of the global allocator into the allocator
module, too.
Removed nightly features; Simplified allocator Fixed formatting issues Move the global allocator into the allocator module
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, this looks good to me! :)
Added alloc support for loader, based on the previous bootstrap and bump allocator implementations from the kernel.