diff options
Diffstat (limited to 'tobba/src/lib.rs')
-rw-r--r-- | tobba/src/lib.rs | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tobba/src/lib.rs b/tobba/src/lib.rs new file mode 100644 index 0000000..f18a44d --- /dev/null +++ b/tobba/src/lib.rs @@ -0,0 +1,21 @@ +#![cfg(any(target_arch="x86", target_arch="x86_64"))] + +#![no_std] +#![crate_name="cpu"] +#![crate_type="rlib"] +#![feature(asm)] +#![feature(associated_consts)] + +#[macro_use] +extern crate bitflags; + +pub use cpu::*; + +#[cfg(target_arch="x86")] +#[path = "x86.rs"] +mod cpu; +#[cfg(target_arch="x86_64")] +#[path = "x86_64.rs"] +mod cpu; + +pub mod std { pub use core::*; } |