axplat 0.3.1-pre.1

This crate provides a unified abstraction layer for diverse hardware platforms.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Power management.

/// Power management interface.
#[def_plat_interface]
pub trait PowerIf {
    /// Bootstraps the given CPU core with the given initial stack (in physical
    /// address).
    ///
    /// Where `cpu_id` is the logical CPU ID (0, 1, ..., N-1, N is the number of
    /// CPU cores on the platform).
    #[cfg(feature = "smp")]
    fn cpu_boot(cpu_id: usize, stack_top_paddr: usize);

    /// Shutdown the whole system.
    fn system_off() -> !;
}