Trait r3::kernel::cfg::CfgPhase1

source ·
pub trait CfgPhase1<System = Self> {
    const CFG_STARTUP_HOOKS: &'static [StartupHookAttr];
    const CFG_INTERRUPT_HANDLERS: &'static [Option<unsafe extern "C" fn()>];

    // Required method
    fn cfg_hunk_pool_ptr() -> *mut u8;
}
Expand description

The first precursor to KernelStatic.

The members of this trait are implementation details and not meant to be used externally. Use attach_phase1! or DelegateKernelStatic to implement this trait.

See KernelStatic’s documentation for an overview of the configuration process and the traits involved.

Required Associated Constants§

source

const CFG_STARTUP_HOOKS: &'static [StartupHookAttr]

source

const CFG_INTERRUPT_HANDLERS: &'static [Option<unsafe extern "C" fn()>]

Required Methods§

Implementors§

source§

impl<T, System> CfgPhase1<System> for Twhere T: DelegateKernelStatic<System>, <T as DelegateKernelStatic<System>>::Target: CfgPhase1<System>,

source§

const CFG_STARTUP_HOOKS: &'static [StartupHookAttr] = <T::Target>::CFG_STARTUP_HOOKS

source§

const CFG_INTERRUPT_HANDLERS: &'static [Option<unsafe extern "C" fn()>] = <T::Target>::CFG_INTERRUPT_HANDLERS