Use upstream lazy static as it has a spin_no_std feature now (#158)

This commit is contained in:
Philipp Oppermann
2016-05-14 16:25:15 +02:00
parent 7170c658a7
commit a39c59801b
3 changed files with 14 additions and 9 deletions

View File

@@ -6,4 +6,7 @@ version = "0.1.0"
[dependencies]
linked_list_allocator = "0.2.0"
spin = "0.3.5"
once = "0.2.0"
[dependencies.lazy_static]
version = "0.2.1"
features = ["spin_no_std"]

View File

@@ -10,7 +10,7 @@ use linked_list_allocator::Heap;
extern crate spin;
extern crate linked_list_allocator;
#[macro_use]
extern crate once;
extern crate lazy_static;
pub const HEAP_START: usize = 0o_000_001_000_000_0000;
pub const HEAP_SIZE: usize = 100 * 1024; // 100 KiB