Barebones rust example working in user space.
Requires manually copying the executable over to the image.
This commit is contained in:
parent
844f55c7d0
commit
b0048b0a4f
13 changed files with 707 additions and 1 deletions
10
rust/usr/testbed/src/main.rs
Normal file
10
rust/usr/testbed/src/main.rs
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
#![no_std]
|
||||
#![no_main]
|
||||
|
||||
use mammoth::debug;
|
||||
|
||||
#[no_mangle]
|
||||
pub extern "C" fn _start() -> ! {
|
||||
debug("Test!");
|
||||
panic!()
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue