summaryrefslogtreecommitdiff
path: root/crates/kernel/src/arch/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/kernel/src/arch/mod.rs')
-rw-r--r--crates/kernel/src/arch/mod.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/crates/kernel/src/arch/mod.rs b/crates/kernel/src/arch/mod.rs
new file mode 100644
index 0000000..bfdfcc7
--- /dev/null
+++ b/crates/kernel/src/arch/mod.rs
@@ -0,0 +1,11 @@
+cfg_if::cfg_if! {
+ if #[cfg(not(target_os = "none"))] {
+ mod hosted;
+ pub use self::hosted::*;
+ } else if #[cfg(target_arch = "riscv64")] {
+ mod riscv64;
+ pub use self::riscv64::*;
+ } else {
+ compile_error!("unsupported platform");
+ }
+}