burritos/src/main.rs

27 lines
704 B
Rust
Raw Normal View History

#![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;
/// 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
use std::{rc::Rc, cell::RefCell};
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() {
let machine = Machine::init_machine();
let system = Rc::new(RefCell::new(System::new(machine)));
System::freeze(system);
2022-10-05 16:30:21 +02:00
}