debug: add ENTER/EXIT markers in usermode_bootstrap
This commit is contained in:
@@ -148,7 +148,9 @@ const KERNEL_METADATA_PAGE_COUNT: usize = syscall::KERNEL_METADATA_SIZE / PAGE_S
|
||||
};
|
||||
|
||||
pub unsafe fn usermode_bootstrap(bootstrap: &Bootstrap, token: &mut CleanLockToken) {
|
||||
info!("usermode_bootstrap: ENTER, page_count={}", bootstrap.page_count);
|
||||
assert_ne!(bootstrap.page_count, 0);
|
||||
info!("usermode_bootstrap: page_count ok, mapping pages");
|
||||
|
||||
{
|
||||
let addr_space = Arc::clone(
|
||||
@@ -358,6 +360,7 @@ pub unsafe fn usermode_bootstrap(bootstrap: &Bootstrap, token: &mut CleanLockTok
|
||||
regs.set_instr_pointer(bootstrap_entry.try_into().unwrap());
|
||||
regs.set_stack_pointer(stack_top_vaddr);
|
||||
}
|
||||
info!("usermode_bootstrap: EXIT, entry={:#x}, sp={:#x}", bootstrap_entry, stack_top_vaddr);
|
||||
}
|
||||
|
||||
unsafe fn bootstrap_mem(bootstrap: &crate::startup::Bootstrap) -> &'static [u8] {
|
||||
|
||||
Reference in New Issue
Block a user