Show where frame allocator ran out
This commit is contained in:
parent
024b0d8a22
commit
7ace92c60c
2 changed files with 5 additions and 5 deletions
|
@ -59,11 +59,11 @@ 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();
|
||||
let stack_start = allocate_frame().expect("no more frames in acpi stack_start").start_address().get();
|
||||
for _i in 0..62 {
|
||||
allocate_frame().expect("no more frames");
|
||||
allocate_frame().expect("no more frames in acpi stack");
|
||||
}
|
||||
let stack_end = allocate_frame().expect("no more frames").start_address().get() + 4096;
|
||||
let stack_end = allocate_frame().expect("no more frames in acpi stack_end").start_address().get() + 4096;
|
||||
|
||||
let ap_ready = TRAMPOLINE as *mut u64;
|
||||
let ap_stack_start = unsafe { ap_ready.offset(1) };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue