You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
485 B
24 lines
485 B
extern crate riscv;
|
|
extern crate bbl;
|
|
|
|
pub mod io;
|
|
pub mod interrupt;
|
|
pub mod timer;
|
|
pub mod paging;
|
|
pub mod memory;
|
|
pub mod compiler_rt;
|
|
|
|
#[no_mangle]
|
|
pub extern fn rust_main() -> ! {
|
|
println!("Hello RISCV! {}", 123);
|
|
::logging::init();
|
|
interrupt::init();
|
|
memory::init();
|
|
timer::init();
|
|
::kmain();
|
|
}
|
|
|
|
#[cfg(feature = "no_bbl")]
|
|
global_asm!(include_str!("boot/boot.asm"));
|
|
global_asm!(include_str!("boot/entry.asm"));
|
|
global_asm!(include_str!("boot/trap.asm")); |