Start Rust OS stuff.

This commit is contained in:
2018-08-21 14:55:28 -07:00
parent 3e5c715493
commit 04b031c6f2
5 changed files with 37 additions and 0 deletions
+1
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
View File
@@ -0,0 +1,4 @@
rust-os
=======
Following along with [Writing an OS in Rust (Second Edition)](https://os.phil-opp.com/).
+4
View File
@@ -0,0 +1,4 @@
[[package]]
name = "bareos"
version = "0.1.0"
+12
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]
+16
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 {}
}