Add arch context, WIP switching

This commit is contained in:
Jeremy Soller 2016-08-22 19:56:35 -06:00
parent 4ced24e8d1
commit f6e57ff5d1
5 changed files with 84 additions and 3 deletions

View file

@ -105,7 +105,6 @@ pub unsafe extern fn kstart() -> ! {
{
let index = heap_start_page.p4_index();
println!("HEAP: {} {} {} {}", index, heap_start_page.p3_index(), heap_start_page.p2_index(), heap_start_page.p1_index());
assert_eq!(index, heap_end_page.p4_index());
let frame = memory::allocate_frame().expect("no frames available");