Start Rust OS stuff.
This commit is contained in:
4
rust-os/bareos/Cargo.lock
generated
Normal file
4
rust-os/bareos/Cargo.lock
generated
Normal file
@@ -0,0 +1,4 @@
|
||||
[[package]]
|
||||
name = "bareos"
|
||||
version = "0.1.0"
|
||||
|
||||
12
rust-os/bareos/Cargo.toml
Normal file
12
rust-os/bareos/Cargo.toml
Normal 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
rust-os/bareos/src/main.rs
Normal file
16
rust-os/bareos/src/main.rs
Normal 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 {}
|
||||
}
|
||||
Reference in New Issue
Block a user