-
Notifications
You must be signed in to change notification settings - Fork 225
add kernel stack address to BootInfo #531
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
Conversation
Freax13
left a comment
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.
Thank you for your contribution!
Can we get a test for this? We could add a test that checks that a local stack variable lies within the address range reported in BootInfo.
api/src/info.rs
Outdated
| /// Virtual address of the start of the kernel stack | ||
| pub kernel_stack_addr: u64, |
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.
"start" can be a bit confusing because the stack grows down. Let's be clear that this is the lowest address of the stack, also sometimes referred to as the bottom of the stack.
Last time we didn't treat this as a breaking change, so we should be fine. |
Freax13
left a comment
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.
LGTM, thanks!
The struct is marked as non-exhaustive, so adding fields should not break anybody. |
|
Any chance we can get a release anytime soon. I'm happy to create a PR to bump versions and update the changelog. That said it looks like the next version has to be a major version bump as we switched over to 2024 edition. |
That'd be greatly appreciated, thanks!
I don't think that's a breaking change though, is it? I can't find any documentation about whether this should be a minor or major change, but I can't think of a reason why it would be a breaking change. |
It requires a upgrade to the rust compiler. However now that I think about it, it shouldn't matter here. This is a nightly only crate and it is pretty much assumed that old nightly compilers might not work, e.g some unstable feature changed. So I guess minor change is ok. |
I'm not sure if a change to
BootInforequires a version bump