2023-03-13 14:51:32 +01:00
|
|
|
|
|
|
|
#![warn(missing_docs)]
|
|
|
|
#![warn(clippy::missing_docs_in_private_items)]
|
|
|
|
|
|
|
|
//! Crate burritos ((BurritOS Using Rust Really Improves The Operating System)
|
|
|
|
//!
|
|
|
|
//! Burritos is an educational operating system written in Rust
|
|
|
|
//! running on RISC-V emulator.
|
|
|
|
|
|
|
|
/// Contain hardware simulated part of the machine
|
2023-01-11 14:58:12 +01:00
|
|
|
mod simulator;
|
2023-02-15 14:56:11 +01:00
|
|
|
mod kernel;
|
2023-03-13 14:51:32 +01:00
|
|
|
/// module containing useful tools which can be use in most part of the OS to ease the development of the OS
|
2023-02-15 18:10:08 +01:00
|
|
|
pub mod utility;
|
2023-01-11 14:58:12 +01:00
|
|
|
|
2023-03-08 21:10:51 +01:00
|
|
|
use kernel::system::System;
|
2023-01-11 14:58:12 +01:00
|
|
|
use simulator::machine::Machine;
|
2022-10-19 16:39:38 +02:00
|
|
|
|
2022-10-05 16:30:21 +02:00
|
|
|
fn main() {
|
2023-03-27 11:35:04 +02:00
|
|
|
let mut machine = Machine::init_machine();
|
2023-04-05 12:01:31 +02:00
|
|
|
let mut system = System::default();
|
|
|
|
machine.run(&mut system);
|
2022-10-05 16:30:21 +02:00
|
|
|
}
|