-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kernel: don't allow default construction of
CoreConfig
- Loading branch information
Showing
2 changed files
with
16 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
//! Boot protocol types and serializer implementation. | ||
//! Provides boot-time information to the kernel from the boot | ||
//! stage configuration. | ||
//! | ||
//! Note that no core-specific information is provided here, as | ||
//! that is handled by passing information to the kernel via | ||
//! architecture-specific transfer stubs. | ||
#[repr(C, align(4096))] | ||
pub struct BootConfig { | ||
/// The total number of cores being booted. | ||
pub core_count: u64, | ||
/// The physical address of the top of the page frame allocator stack. | ||
pub pfa_stack_top: u64, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters