refactor(kernel): split ipc/memory/lib/thread by concern; trim comments
This commit is contained in:
@@ -1,7 +1,4 @@
|
||||
//! The authority init starts with. The board describes its devices; the
|
||||
//! kernel turns each into capabilities (an MMIO region and an IRQ line)
|
||||
//! and adds one SystemControl capability. Init then decides who gets what;
|
||||
//! nothing else is privileged by its process id.
|
||||
//! The authority init starts with: per-device MMIO and IRQ capabilities plus one SystemControl.
|
||||
|
||||
use domain::{error::KernelError, resource::Resource};
|
||||
use platform::Platform;
|
||||
@@ -31,9 +28,7 @@ pub struct BoardCaps {
|
||||
}
|
||||
|
||||
impl<P: Platform> Kernel<P> {
|
||||
/// Creates one device region per board device, owned by `init`. Fails
|
||||
/// on the first device that is misaligned, overlaps the frame pool or
|
||||
/// another device, or names an IRQ the kernel cannot route.
|
||||
/// Creates one device region per board device, owned by `init`; fails on the first invalid one.
|
||||
pub fn register_board(
|
||||
&mut self,
|
||||
init: ProcessId,
|
||||
@@ -50,11 +45,8 @@ impl<P: Platform> Kernel<P> {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
/// Gives `init` a capability to every registered device's region and
|
||||
/// IRQ line, then one SystemControl capability. All carry Delegate so
|
||||
/// init can hand them on. Writes where each device's caps went into
|
||||
/// `placed` (one entry per device, in order) and returns the
|
||||
/// SystemControl slot, so boot can tell init.
|
||||
/// Gives `init` (with Delegate) caps to every device region and IRQ, then SystemControl.
|
||||
/// Writes each device's slots into `placed` in order; returns the SystemControl slot.
|
||||
pub fn grant_boot_authority(
|
||||
&mut self,
|
||||
init: ProcessId,
|
||||
|
||||
Reference in New Issue
Block a user