debug: finer-grained markers in usermode_bootstrap mmap section
This commit is contained in:
@@ -150,7 +150,7 @@ 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");
|
||||
info!("usermode_bootstrap: page_count ok, getting addr_space");
|
||||
|
||||
{
|
||||
let addr_space = Arc::clone(
|
||||
@@ -159,6 +159,7 @@ pub unsafe fn usermode_bootstrap(bootstrap: &Bootstrap, token: &mut CleanLockTok
|
||||
.addr_space()
|
||||
.expect("expected bootstrap context to have an address space"),
|
||||
);
|
||||
info!("usermode_bootstrap: got addr_space, calling mmap for {} pages", bootstrap.page_count);
|
||||
|
||||
let base = Page::containing_address(VirtualAddress::new(PAGE_SIZE));
|
||||
let flags = MapFlags::MAP_FIXED_NOREPLACE
|
||||
@@ -172,6 +173,7 @@ pub unsafe fn usermode_bootstrap(bootstrap: &Bootstrap, token: &mut CleanLockTok
|
||||
let _base_page = {
|
||||
let mut lock_token = token.token();
|
||||
let mut addr_space_lock = addr_space.acquire_write(lock_token.downgrade());
|
||||
info!("usermode_bootstrap: acquired write lock, calling mmap");
|
||||
addr_space_lock
|
||||
.mmap(
|
||||
&addr_space,
|
||||
@@ -192,6 +194,7 @@ pub unsafe fn usermode_bootstrap(bootstrap: &Bootstrap, token: &mut CleanLockTok
|
||||
)
|
||||
.expect("Failed to allocate bootstrap pages")
|
||||
};
|
||||
info!("usermode_bootstrap: mmap done");
|
||||
|
||||
// Insert kernel schemes root capabilities.
|
||||
let mut kernel_schemes_infos =
|
||||
|
||||
Reference in New Issue
Block a user