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 74ccbaa4a6
commit 7da6696a34
2 changed files with 1 additions and 7 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() };
}