1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#![crate_name = "main"]
#![crate_type = "staticlib"]
#![no_std]
#![feature(asm, macro_rules, default_type_params, phase, globs, lang_items, intrinsics)]
#[phase(plugin, link)]
extern crate core;
#[cfg(target_arch = "x86")]
pub use platform::runtime::{memset, memcpy, memmove};
#[cfg(target_arch = "arm")]
pub use rust_core::support::{memcpy, memmove};
pub use platform::cpu;
pub use kernel::util;
mod macros;
mod rust_core;
pub mod kernel;
#[allow(dead_code)]
#[cfg(target_arch = "x86")]
#[path = "../arch/x86/"]
mod platform {
pub mod cpu;
pub mod io;
pub mod drivers;
pub mod runtime;
}
#[allow(dead_code)]
#[cfg(target_arch = "arm")]
#[path = "../arch/arm/"]
mod platform {
pub mod cpu;
pub mod io;
pub mod drivers;
}
mod std {
pub use core::{cmp, clone};
pub use core::fmt;
pub use core::option;
}