mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-24 09:40:52 +00:00
This refactors the kernel so that it *can* run on baremetal, but it can also run as part of a full system. This will aid in developing, and ensure that a minimum amount of unsafe code is present within the kernel. Signed-off-by: Sean Cross <sean@xobs.io>
19 lines
515 B
Rust
19 lines
515 B
Rust
#[cfg(any(windows,unix))]
|
|
mod hosted;
|
|
#[cfg(any(windows,unix))]
|
|
pub use hosted::*;
|
|
|
|
#[cfg(target_arch = "riscv32")]
|
|
mod riscv;
|
|
#[cfg(target_arch = "riscv32")]
|
|
pub use crate::arch::riscv::*;
|
|
|
|
#[cfg(all(target_arch = "riscv64", not(target_os = "xous")))]
|
|
mod riscv;
|
|
#[cfg(all(target_arch = "riscv64", not(target_os = "xous")))]
|
|
pub use riscv::*;
|
|
|
|
#[cfg(all(target_arch = "x86_64", not(any(windows,unix))))]
|
|
mod x86_64;
|
|
#[cfg(all(target_arch = "x86_64", not(any(windows,unix))))]
|
|
pub use x86_64::*;
|