Start Rust OS stuff.

This commit is contained in:
Kyle Isom 2018-08-14 19:03:48 -07:00
parent 3e5c715493
commit 04b031c6f2
5 changed files with 37 additions and 0 deletions

View File

@ -18,6 +18,7 @@ Projects
+ ``pio/``: `PlatformIO <https://platformio.org/>`_ projects
+ ``practical_prolog/``: `The Practice of Prolog <https://mitpress.mit.edu/books/practice-prolog>`_
+ ``qc/``: Quantum computing experiments
+ ``rust-os/``: working through writing an OS in Rust
+ ``uc/``: `Understanding Computation <http://computationbook.com/>`_
Related

4
rust-os/README.md Normal file
View File

@ -0,0 +1,4 @@
rust-os
=======
Following along with [Writing an OS in Rust (Second Edition)](https://os.phil-opp.com/).

4
rust-os/bareos/Cargo.lock generated Normal file
View File

@ -0,0 +1,4 @@
[[package]]
name = "bareos"
version = "0.1.0"

12
rust-os/bareos/Cargo.toml Normal file
View File

@ -0,0 +1,12 @@
[package]
name = "bareos"
version = "0.1.0"
authors = ["Kyle Isom <kyle@imap.cc>"]
[profile.dev]
panic = "abort"
[profile.release]
panic = "abort"
[dependencies]

View File

@ -0,0 +1,16 @@
#![feature(panic_implementation)]
#![no_std]
#![no_main]
use core::panic::PanicInfo;
#[panic_implementation]
#[no_mangle]
pub fn panic(_info: &PanicInfo) -> ! {
loop {}
}
#[no_mangle]
pub extern "C" fn _start() -> ! {
loop {}
}