rust-osdev / rust-osdev/bootloader
Pass `UnwindInfo` in `BootInfo`
Open
Nobody has claimed this yet.
enhancement
- Dominant language
- Rust
- Stars
- 1.7k
- Forks
- 240
- PR merge metrics
- No merged PRs in 30d
Description
It will be nice to pass UnwindInfo in BootInfo so that we can load the kernel ELF in the kernel to do stack unwinding.
#[derive(Debug, Copy, Clone)]
#[repr(C)]
pub struct UnwindInfo {
/// The base address of the kernel. The kernel base is required
/// for stack unwinding during kernel panics.
pub kernel_base: VirtAddr,
/// The size of the kernel, required to calculate the end of the
/// kernel base.
pub kernel_size: usize,
pub stack_top: VirtAddr,
pub stack_size: usize
}
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing how BootInfo is constructed and passed to the kernel, then inspect the kernel ELF loading and stack setup paths. Add UnwindInfo with the specified kernel and stack fields to BootInfo so the kernel receives the data needed for stack unwinding. Done means the information is available in the kernel without breaking existing boot metadata.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- operating-systems
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100