From 997a4a776528f51462766b64be23b9d09e454514 Mon Sep 17 00:00:00 2001 From: edef Date: Thu, 16 Apr 2015 06:17:03 -0400 Subject: [PATCH] move architecture specifics into arch directory --- src/arch/mod.rs | 7 +++++++ src/{ => arch/x86_64}/init.s | 0 src/{arch.rs => arch/x86_64/mod.rs} | 0 src/{ => arch/x86_64}/swap.s | 0 src/lib.rs | 1 - 5 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 src/arch/mod.rs rename src/{ => arch/x86_64}/init.s (100%) rename src/{arch.rs => arch/x86_64/mod.rs} (100%) rename src/{ => arch/x86_64}/swap.s (100%) diff --git a/src/arch/mod.rs b/src/arch/mod.rs new file mode 100644 index 0000000..1e5b3c6 --- /dev/null +++ b/src/arch/mod.rs @@ -0,0 +1,7 @@ +// Copyright (c) 2015, edef +// See the LICENSE file included in this distribution. +pub use self::imp::Registers; + +#[cfg(target_arch = "x86_64")] +#[path = "x86_64/mod.rs"] +mod imp; diff --git a/src/init.s b/src/arch/x86_64/init.s similarity index 100% rename from src/init.s rename to src/arch/x86_64/init.s diff --git a/src/arch.rs b/src/arch/x86_64/mod.rs similarity index 100% rename from src/arch.rs rename to src/arch/x86_64/mod.rs diff --git a/src/swap.s b/src/arch/x86_64/swap.s similarity index 100% rename from src/swap.s rename to src/arch/x86_64/swap.s diff --git a/src/lib.rs b/src/lib.rs index 59f2a5b..225d039 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -23,7 +23,6 @@ pub mod stack; mod debug; -#[cfg(target_arch = "x86_64")] mod arch; #[cfg(feature = "os")]