Start Rust OS stuff.
This commit is contained in:
parent
3e5c715493
commit
04b031c6f2
|
@ -18,6 +18,7 @@ Projects
|
||||||
+ ``pio/``: `PlatformIO <https://platformio.org/>`_ projects
|
+ ``pio/``: `PlatformIO <https://platformio.org/>`_ projects
|
||||||
+ ``practical_prolog/``: `The Practice of Prolog <https://mitpress.mit.edu/books/practice-prolog>`_
|
+ ``practical_prolog/``: `The Practice of Prolog <https://mitpress.mit.edu/books/practice-prolog>`_
|
||||||
+ ``qc/``: Quantum computing experiments
|
+ ``qc/``: Quantum computing experiments
|
||||||
|
+ ``rust-os/``: working through writing an OS in Rust
|
||||||
+ ``uc/``: `Understanding Computation <http://computationbook.com/>`_
|
+ ``uc/``: `Understanding Computation <http://computationbook.com/>`_
|
||||||
|
|
||||||
Related
|
Related
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
rust-os
|
||||||
|
=======
|
||||||
|
|
||||||
|
Following along with [Writing an OS in Rust (Second Edition)](https://os.phil-opp.com/).
|
|
@ -0,0 +1,4 @@
|
||||||
|
[[package]]
|
||||||
|
name = "bareos"
|
||||||
|
version = "0.1.0"
|
||||||
|
|
|
@ -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]
|
|
@ -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 {}
|
||||||
|
}
|
Loading…
Reference in New Issue