Add simple paging, use rust libcore and compile without sse

This commit is contained in:
Jeremy Soller 2016-08-15 11:29:53 -06:00
parent 9f0819dafb
commit 465363f0a1
18 changed files with 601 additions and 53 deletions

View file

@ -1,6 +0,0 @@
/// A newtype representing a virtual address.
#[derive(Copy, Clone, Debug, Eq, Ord, PartialEq, PartialOrd)]
pub struct Virtual {
/// The inner value.
pub inner: usize,
}

View file

@ -9,7 +9,7 @@ extern "C" fn eh_personality() {}
#[cfg(not(test))]
/// Required to handle panics
#[lang = "panic_fmt"]
extern "C" fn panic_fmt() -> ! {
extern "C" fn panic_fmt(fmt: ::core::fmt::Arguments, file_line: &(&'static str, u32)) -> ! {
loop {
unsafe { halt() };
}