-
Notifications
You must be signed in to change notification settings - Fork 215
Pass UnwindInfo
in BootInfo
#164
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
Comments
Sounds reasonable to me! While you can already find out the kernel start address and size through a linker script, I agree that a boot info field would be easier. For stack top and size there is currently no workaround except for setting these to fixed values in the bootloader config. |
@phil-opp Couldn't you just pass that after finding the address in the bootloader? I'm confused about the problem. |
There is no problem here, we just need to do it. Happy to merge a PR for this! |
Some adjustments to the code from the OP that I would make: #[derive(Debug, Copy, Clone)]
#[repr(C)]
pub struct KernelInfo {
pub kernel_base: u64
pub kernel_size: u64,
pub stack_top: u64,
pub stack_size: u64,
} Basically:
|
It will be nice to pass
UnwindInfo
inBootInfo
so that we can load the kernel ELF in the kernel to do stack unwinding.The text was updated successfully, but these errors were encountered: