-
Notifications
You must be signed in to change notification settings - Fork 14
/
lib.rs
45 lines (39 loc) · 847 Bytes
/
lib.rs
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
//!
//! Kernel services.
//!
#![feature(allocator_api)]
#![feature(box_syntax)]
#![no_std]
#[macro_use]
extern crate alloc;
#[macro_use]
extern crate bitflags;
#[macro_use]
extern crate intrusive_collections;
extern crate null_terminated;
extern crate rlibc;
extern crate xmas_elf;
pub mod atomic_ring_buffer;
pub mod event;
pub mod errno;
#[macro_use]
pub mod print;
pub mod memory;
pub mod mmu;
pub mod vm;
pub mod process;
pub mod sched;
pub mod device;
pub mod ioport;
pub mod ioqueue;
pub mod user_access;
pub use memory::memory_add_span;
pub use memory::page_alloc_init;
pub use memory::page_alloc_small;
pub use memory::page_free_small;
pub use memory::page_alloc_large;
pub use memory::page_free_large;
pub use process::process_spawn;
use memory::KAllocator;
#[global_allocator]
static mut ALLOCATOR: KAllocator = KAllocator::new();