Print out more useful information about AP and BSP, create kmain_ap

This commit is contained in:
Jeremy Soller 2016-08-17 19:38:04 -06:00
parent 0d995bfb5c
commit 8ddddcec9f
4 changed files with 19 additions and 14 deletions

View file

@ -53,7 +53,7 @@ pub fn init_sdt(sdt: &'static Sdt, active_table: &mut ActivePageTable) {
// Allocate a stack
// TODO: Allocate contiguous
let stack_start = allocate_frame().expect("no more frames").start_address().get();
for i in 0..62 {
for _i in 0..62 {
allocate_frame().expect("no more frames");
}
let stack_end = allocate_frame().expect("no more frames").start_address().get() + 4096;