mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-25 09:50:52 +00:00
This will mimic the `create_thread()` call and will obviate our own process-creation code. Signed-off-by: Sean Cross <sean@xobs.io>
28 lines
623 B
Rust
28 lines
623 B
Rust
#![cfg_attr(not(any(windows, unix)), no_std)]
|
|
|
|
#[macro_use]
|
|
extern crate bitflags;
|
|
extern crate num_derive;
|
|
extern crate num_traits;
|
|
|
|
pub mod arch;
|
|
|
|
pub mod carton;
|
|
pub mod definitions;
|
|
mod messages;
|
|
pub mod syscall;
|
|
|
|
pub use arch::{ProcessInit, ThreadInit, ProcessArgs};
|
|
pub use definitions::*;
|
|
pub use messages::*;
|
|
pub use syscall::*;
|
|
|
|
/// Convert a four-letter string into a 32-bit int.
|
|
#[macro_export]
|
|
macro_rules! make_name {
|
|
($fcc:expr) => {{
|
|
let mut c: [u8; 4] = Default::default();
|
|
c.copy_from_slice($fcc.as_bytes());
|
|
u32::from_le_bytes(c) as usize
|
|
}};
|
|
}
|