Switch ok with debug mode apps, implement sys_exit correctly later.
This commit is contained in:
parent
4e8059e222
commit
3f3e6b2b99
16 changed files with 244 additions and 147 deletions
|
@ -3,6 +3,7 @@
|
|||
#![feature(global_asm)]
|
||||
#![feature(llvm_asm)]
|
||||
#![feature(panic_info_message)]
|
||||
#![feature(const_in_array_repeat_expressions)]
|
||||
|
||||
#[macro_use]
|
||||
mod console;
|
||||
|
@ -10,7 +11,9 @@ mod lang_items;
|
|||
mod sbi;
|
||||
mod syscall;
|
||||
mod trap;
|
||||
mod batch;
|
||||
mod loader;
|
||||
mod config;
|
||||
mod task;
|
||||
|
||||
global_asm!(include_str!("entry.asm"));
|
||||
global_asm!(include_str!("link_app.S"));
|
||||
|
@ -30,6 +33,7 @@ pub fn rust_main() -> ! {
|
|||
clear_bss();
|
||||
println!("[kernel] Hello, world!");
|
||||
trap::init();
|
||||
batch::init();
|
||||
batch::run_next_app();
|
||||
loader::load_apps();
|
||||
task::run_first_task();
|
||||
panic!("Unreachable in rust_main!");
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue