Adds justfile to build everything

This commit is contained in:
2026-02-13 23:20:36 +01:00
parent 27a3847c13
commit 00d9ce656c
17 changed files with 36 additions and 21 deletions

6
user/test_pic/Cargo.toml Normal file
View File

@@ -0,0 +1,6 @@
[package]
name = "test_pic"
version = "0.1.0"
edition = "2024"
[dependencies]

3
user/test_pic/build.rs Normal file
View File

@@ -0,0 +1,3 @@
fn main() {
println!("cargo::rustc-link-arg=-Tilm.ld");
}

21
user/test_pic/src/main.rs Normal file
View File

@@ -0,0 +1,21 @@
#![no_std]
#![no_main]
#[panic_handler]
fn panic(_panic_info: &core::panic::PanicInfo) -> ! {
loop {}
}
#[unsafe(no_mangle)]
pub extern "C" fn entry() {
let test = "Hello from user mode";
unsafe {
core::arch::asm!(
"ecall",
in("a0") 999,
in("a1") test.as_ptr(),
in("a2") test.len(),
clobber_abi("system")
);
}
}