Add simple paging, use rust libcore and compile without sse
This commit is contained in:
parent
9f0819dafb
commit
465363f0a1
18 changed files with 601 additions and 53 deletions
|
@ -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,
|
||||
}
|
|
@ -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() };
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue