pub fn init(cfg: KernelConfig, handler: &'static impl KernelHandler) {
    KCONFIG.init_once_by(cfg);
    KHANDLER.init_once_by(handler);

    unsafe { trapframe::init() };
    self::arch::init();
}
/// Initialize the HAL.
///
/// This function must be called at the beginning.
Initialize the HAL.
This function must be called at the beginning.
Initialize the HAL . This function must be called at the beginning .
pub fn init(cfg: KernelConfig, handler: &'static impl KernelHandler) {
    KCONFIG.init_once_by(cfg);
    KHANDLER.init_once_by(handler);
    unsafe { trapframe::init() };
    self::arch::init();
}
pub fn init ( cfg : KernelConfig , handler : & ' static impl KernelHandler ) { KCONFIG . init_once_by ( cfg ) ; KHANDLER . init_once_by ( handler ) ; unsafe { trapframe :: init ( ) } ; self :: arch :: init ( ) ; }
Initialize the HAL.
Initialize the HAL .
cfg
KernelConfig
handler
&'static impl KernelHandler
cfg
KernelConfig
handler
&'static impl KernelHandler