Skip to content

Commit 7892cfb

Browse files
committed
std: xous: add os-specific ffi calls
Xous has no C FFI. Instead, all FFI is done via syscalls that are specified in Rust. Add these FFI calls to libstd, as well as some of the currently-supported syscalls. This enables Rust programs to interact with the Xous operating system while avoiding adding an extra dependency to libstd. Signed-off-by: Sean Cross <sean@xobs.io>
1 parent 61cfb17 commit 7892cfb

File tree

5 files changed

+1122
-0
lines changed

5 files changed

+1122
-0
lines changed

library/std/src/os/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,8 @@ pub mod vita;
146146
pub mod vxworks;
147147
#[cfg(target_os = "watchos")]
148148
pub(crate) mod watchos;
149+
#[cfg(target_os = "xous")]
150+
pub mod xous;
149151

150152
#[cfg(any(unix, target_os = "wasi", doc))]
151153
pub mod fd;

0 commit comments

Comments
 (0)