mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-19 20:46:35 +00:00
Refactor project structure
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
bd878dd1c9
commit
e3c227ae06
16
kernel/src/lib.rs
Normal file
16
kernel/src/lib.rs
Normal file
@ -0,0 +1,16 @@
|
||||
// SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
#![no_std]
|
||||
#![no_main]
|
||||
#![forbid(unsafe_code)]
|
||||
extern crate aster_frame;
|
||||
|
||||
use aster_frame::prelude::*;
|
||||
|
||||
#[aster_main]
|
||||
pub fn main() -> ! {
|
||||
println!("[kernel] finish init aster_frame");
|
||||
component::init_all(component::parse_metadata!()).unwrap();
|
||||
aster_nix::init();
|
||||
aster_nix::run_first_process();
|
||||
}
|
Reference in New Issue
Block a user